Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not initialize / shutdown JIT for each test
This commit avoid initialization and shutdown of JIT for *each* TRIL test and instead shutdown / initialize JIT again every 5000 tests (this can be easily changed). to further reduce memory footprint of `comptest`. As in case of type dictionary, during JIT initialization some internal structures are allocated in persistent memory and thus never freed. More importantly, this commit helps significantly to reduce memory footprint when running tests under QEMU - the exact nature of why this help escapes me, but probably has to do with memory used by QEMU's TCG "JIT". With this change, running tests for x86_64 natively, the peak memory consumption of `comptest` drops by another ~150MB (to 317MB). For RISC-V using QEMU on x86_64 host peak memory consumption drops to 460MB.
- Loading branch information