Poisoning in HotSpot

Julian Waters tanksherman27 at gmail.com
Tue Nov 26 09:55:24 UTC 2024


Hi all,

It turned out in the review of https://github.com/openjdk/jdk/pull/22069 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: https://godbolt.org/z/PKMjjWTxz

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?

best regards,
Julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-dev/attachments/20241126/0b1d594d/attachment.htm>


More information about the hotspot-dev mailing list