https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110063
--- Comment #1 from Eliaz Pitavy <eliaz.pitavy at obspm dot fr> --- Adding ctx.set_bool_option(GCC_JIT_BOOL_OPTION_SELFCHECK_GC, 1); reduces the memory leak to 733302 bytes leaked in 5589 allocations. Adding ctx.set_bool_use_external_driver(1); reduces the memory leak to 171512 bytes leaked in 1191 allocations. The combination of both lines end up to strongly reduce the leak to 49544 bytes leaked in 894 allocations.