mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-25 23:29:55 +00:00
8067680: (sctp) Possible race initializing native IDs
Reviewed-by: chegar, rriggs
This commit is contained in:
parent
f5b35f790c
commit
57d42b897c
@ -316,11 +316,12 @@ void initializeISA
|
||||
if (isaCls == 0) {
|
||||
jclass c = (*env)->FindClass(env, "java/net/InetSocketAddress");
|
||||
CHECK_NULL(c);
|
||||
isaCtrID = (*env)->GetMethodID(env, c, "<init>",
|
||||
"(Ljava/net/InetAddress;I)V");
|
||||
CHECK_NULL(isaCtrID);
|
||||
isaCls = (*env)->NewGlobalRef(env, c);
|
||||
CHECK_NULL(isaCls);
|
||||
(*env)->DeleteLocalRef(env, c);
|
||||
isaCtrID = (*env)->GetMethodID(env, isaCls, "<init>",
|
||||
"(Ljava/net/InetAddress;I)V");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user