]> gcc.gnu.org Git - gcc.git/commit
d: Disable the D runtime garbage collector after initializing (PR103520)
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 1 Dec 2021 22:56:28 +0000 (23:56 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 2 Dec 2021 00:46:07 +0000 (01:46 +0100)
commitfa10faa72d8e9e97b6e564f8b0a7b602538d0da0
treeec8bbec2cec218e2f906408392754d7c110bca3d
parent12421a364548323df7126c6e3e2d0f82ad8fe53a
d: Disable the D runtime garbage collector after initializing (PR103520)

Not all targets that support building libdruntime have a stable garbage
collector, so to avoid running into problems where live memory allocated
by the D GC is freed, disable all in-flight collections until a time
when scanning is more reliably implemented everywhere.

PR d/103520

gcc/d/ChangeLog:

* d-frontend.h (gc_disable): Declare.
* d-lang.cc (d_init_options): Disable the D runtime garbage collector
after initializing.
gcc/d/d-frontend.h
gcc/d/d-lang.cc
This page took 0.058987 seconds and 6 git commands to generate.