Add global string de-duplication cache #3470
Labels
A-interpreter
Area: affects the core interpreter
C-enhancement
Category: a PR with an enhancement or an issue tracking an accepted enhancement
E-good-first-issue
A good way to start contributing, mentoring is available
Currently, in
localtime_r
and also for some cases where we raise panics, we allocate a fresh string each time. These strings never get deallocated so they just keep accumulating. Conceptually these are static strings so we can deduplicate them with a global cache.The cache should be used everywhere that
allocate_str
is called withMiriMemoryKind::Machine
.The text was updated successfully, but these errors were encountered: