]> git.ipfire.org Git - thirdparty/gcc.git/commit
libphobos: Push all callee-save registers on the stack before GC scan
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 2 Dec 2021 00:53:51 +0000 (01:53 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 2 Dec 2021 14:43:07 +0000 (15:43 +0100)
commit4e4ea7514c97099f6a4cd00bc1138ed0950ed6b4
tree88124f665d6265f3712d7c78638f44ce4ff8dbc9
parent500468bc82b411d923c902d6c475b299a1ff913f
libphobos: Push all callee-save registers on the stack before GC scan

This is the library fix for PR103520 that also prevents the garbage
collector from releasing live memory.  However this requires that the
host compiler has been patched with this fix, so the GC will remain
disabled in the D front-end for now until enough time has passed for
this to have trickled down into enough releases.

libphobos/ChangeLog:

* libdruntime/core/thread.d (callWithStackShell): Push all callee-save
registers on the stack using inline assembly.

(cherry picked from commit 2fb6a57f9ffa9ac964931b439b6d1600a698e377)
libphobos/libdruntime/core/thread.d