RFR: 8272736: [JVMCI] Add API for reading and writing JVMCI thread locals

Tom Rodriguez never at openjdk.java.net
Fri Aug 20 04:48:23 UTC 2021


On Fri, 20 Aug 2021 02:43:33 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> 8272736: [JVMCI] Add API for reading and writing JVMCI thread locals
>
> src/hotspot/share/runtime/thread.hpp line 961:
> 
>> 959: 
>> 960:   // Fast thread locals for use by JVMCI
>> 961:   jlong      _jvmci_reserved0;
> 
> Update: please ignore (hit wrong button) I now see this coming from Java.
> 
> We are trying to avoid use of Java types in code that does not directly interact with Java. Does this really need to be a jlong or does it just need to be 64-bit? Or does it need to be the same size as a ptr whatever that may be?

Yes that's right.  Since it's now exposed through Java it really needs to be a Java compatible type.

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

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


More information about the hotspot-dev mailing list