RFR: 8254842: [JVMCI] copy thread name when attaching libgraal thread to HotSpot [v2]

Vladimir Kozlov kvn at openjdk.java.net
Fri Oct 16 19:14:11 UTC 2020


On Fri, 16 Oct 2020 18:13:33 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> 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.

okay.

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

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


More information about the hotspot-compiler-dev mailing list