RFR: 8254842: [JVMCI] copy thread name when attaching libgraal thread to HotSpot [v2]
Doug Simon
dnsimon at openjdk.java.net
Fri Oct 16 18:16:17 UTC 2020
On Fri, 16 Oct 2020 17:51:33 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Doug Simon has updated the pull request incrementally with one additional commit since the last revision:
>>
>> add guarantee to clarify name argument must not be null
>
> src/hotspot/share/jvmci/jvmciCompilerToVM.cpp line 2354:
>
>> 2352: C2V_VMENTRY_PREFIX(jboolean, attachCurrentThread, (JNIEnv* env, jobject c2vm, jbyteArray name, jboolean
>> as_daemon)) 2353: if (thread == NULL) {
>> 2354: // Called from unattached JVMCI shared library thread
>
> What "unattached" means?
This is a thread that was created and started in libgraal. Libgraal is a JNI library and so any thread it creates that
wants to call into the VM must first
[attach](https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/invocation.html) itself to the VM.
-------------
PR: https://git.openjdk.java.net/jdk/pull/684
More information about the hotspot-compiler-dev
mailing list