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

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


On Thu, 18 Mar 2021 12:52:43 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> src/hotspot/share/runtime/sharedRuntime.cpp line 2124:
>> 
>>> 2122:     Atomic::inc(BiasedLocking::slow_path_entry_count_addr());
>>> 2123:   }
>>> 2124:   Handle h_obj(thread, obj);
>> 
>> Can you make this one 'current'?
>
> Unfortunately not - the JRT_BLOCK_NO_ASYNC requires "thread".

Then keep it THREAD.  That implies current thread.

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

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


More information about the hotspot-runtime-dev mailing list