8252794: Creation of JNIMethodBlock should be done with a leaf lock

Reviewed-by: coleenp, dholmes
This commit is contained in:
Robbin Ehn 2020-09-09 13:21:01 +00:00
parent 5fef8ddaff
commit d56096471b
2 changed files with 5 additions and 5 deletions

View file

@ -253,7 +253,7 @@ void mutex_init() {
Notification_lock = Service_lock;
}
def(JmethodIdCreation_lock , PaddedMutex , leaf, true, _safepoint_check_never); // used for creating jmethodIDs.
def(JmethodIdCreation_lock , PaddedMutex , special-2, true, _safepoint_check_never); // used for creating jmethodIDs.
def(SystemDictionary_lock , PaddedMonitor, leaf, true, _safepoint_check_always);
def(ProtectionDomainSet_lock , PaddedMutex , leaf-1, true, _safepoint_check_never);