<div dir="ltr">Hi all,<br><div><br></div><div>It turned out in the review of <a href="https://github.com/openjdk/jdk/pull/22069">https://github.com/openjdk/jdk/pull/22069</a> that the poisoning mechanism used in HotSpot can break when combined with LTO. Also, poisoning does not work on Windows, at least not with the default Microsoft compiler (Though, the Windows/gcc Port also disables FORBID_C_FUNCTION as well). I've tried coming up with an alternative mechanism to poison methods that works on any platform, but I'm unsure what to do with it now. It can be viewed here: <a href="https://godbolt.org/z/PKMjjWTxz">https://godbolt.org/z/PKMjjWTxz</a></div><div><br></div><div>Any improvements that could be made to it? Should I continue this so we can have a poisoning mechanism that works even while LTO is active?</div><div><br></div><div>best regards,</div><div>Julian</div></div>