RFR: 8272736: [JVMCI] Add API for reading and writing JVMCI thread locals [v2]
Coleen Phillimore
coleenp at openjdk.java.net
Fri Aug 20 15:27:23 UTC 2021
On Fri, 20 Aug 2021 04:45:31 GMT, Tom Rodriguez <never at openjdk.org> wrote:
>> 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.
I had that same thought but I agree with Tom. We want a Java type here.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5192
More information about the hotspot-dev
mailing list