RFR: 8263709: Cleanup THREAD/TRAPS/CHECK usage in JRT_ENTRY routines

Coleen Phillimore coleenp at openjdk.java.net
Fri Mar 19 01:51:41 UTC 2021


On Fri, 19 Mar 2021 00:31:32 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> Everything goes back to the JRT macros where THREAD is created from thread, so they are always the same current thread instance.
>
> Have you check all possible call paths? Could one of these functions be called from a place other than the JRT functions?

This is why THREAD is clearly the current thread because that's what the JRT_/JVM_ macros do.  Just use THREAD as the current thread for ResourceMark and whatever else needs it below.

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

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


More information about the hotspot-runtime-dev mailing list