[Chapel Merge] Deallocate string literals buffer

Branch: refs/heads/main
Revision: 7091958
Author: mppf
Log Message:

Merge pull request #18319 from mppf/deallocate-string-literals-buffer

Deallocate string literals buffer

Follow-up to PR #18307

Due to the fact that string literals module initialization
occurs before other modules & global variables will be reset,
added a variable in the runtime to track the string literals
buffer so it can be freed later.

Reviewed by @e-kayrakli - thanks!

  • [x] full local testing

  • [x] full local asan testing

  • [x] full gasnet asan testing

    Modified Files:
    M compiler/AST/symbol.cpp
    M compiler/AST/wellknown.cpp
    M compiler/include/wellknown.h
    M compiler/resolution/functionResolution.cpp
    M modules/internal/Bytes.chpl
    M modules/internal/ChapelUtil.chpl
    M modules/internal/String.chpl
    M runtime/include/chpl-init.h
    M runtime/include/chpl-mem-desc.h
    M runtime/src/chpl-init.c
    M runtime/src/chpl-string-support.c

    Compare: Comparing 1162f536cb00...709195866882 · chapel-lang/chapel · GitHub