mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-10 21:50:07 +00:00
8220352: Crash with assert(external_guard || result != __null) failed: Invalid JNI handle
Don't delete globalrefs that might still be referenced Reviewed-by: gadams, jcbeyler, sspitsyn
This commit is contained in:
parent
687596a858
commit
6fd9b75e55
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -147,10 +147,6 @@ static int clean() {
|
||||
jvmti->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_MONITOR_WAIT, NULL)))
|
||||
nsk_jvmti_setFailStatus();
|
||||
|
||||
/* dispose global references */
|
||||
jni->DeleteGlobalRef(object);
|
||||
jni->DeleteGlobalRef(thread);
|
||||
|
||||
return NSK_TRUE;
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -148,10 +148,6 @@ static int clean() {
|
||||
jvmti->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_MONITOR_WAITED, NULL)))
|
||||
nsk_jvmti_setFailStatus();
|
||||
|
||||
/* dispose global references */
|
||||
jni->DeleteGlobalRef(object);
|
||||
jni->DeleteGlobalRef(thread);
|
||||
|
||||
return NSK_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user