RFR: 8282469: Allow considered use of C++ thread_local in Hotspot

David Holmes dholmes at openjdk.java.net
Wed Mar 9 07:29:04 UTC 2022


On Tue, 8 Mar 2022 21:33:14 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

> Please let me know if I have this correct.

@dcubed-ojdk  you statement is not wrong but it an odd way of rephrasing things. The current change  has no affect on the link-time check, so if a panama use would run afoul of that check before, then it will still run afoul of it. But I don't expect it to run afoul in either case.

The problem I'm fixing with this part of the change is that the C++ library will currently link to our (booby-trapped) definitions of global operators new and delete, where it needs the real ones, so I deleted our definitions. We still don't want hotspot code to use these global external definitions though and that is where the pre-existing link-time check comes in - we check all libjvm component object files for symbols referring to the disallowed global methods.

Hope that clarifies.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7719


More information about the hotspot-dev mailing list