RFR: 8242440: use separate, destroyable JavaVM instances per libgraal compiler thread [v2]
    Doug Simon 
    dnsimon at openjdk.java.net
       
    Tue Apr 19 10:11:07 UTC 2022
    
    
  
On Sun, 17 Apr 2022 08:58:47 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> src/hotspot/share/runtime/mutexLocker.hpp line 151:
>> 
>>> 149: 
>>> 150: #if INCLUDE_JVMCI
>>> 151: #define JVMCIRuntime_lock_rank safepoint
>> 
>> This shouldn't be a macro.  Use `const Mutex::Rank JVMCIRuntime_lock_rank = safepoint;`.
>
> Thanks. This suggestion actually helps me clean up the code by allocating a global `JVMCIRuntime_lock` and associating with the first `JVMCIRuntime` created. It is then used as a prototype for the lock associated with subsequent `JVMCIRuntime`s.
Fixed: https://github.com/openjdk/jdk/pull/8262/commits/117fbd7d69e1768755ff3b0b7c8cf3e01310c37e
-------------
PR: https://git.openjdk.java.net/jdk/pull/8262
    
    
More information about the hotspot-dev
mailing list