Mercurial > hg > release > icedtea8-forest-3.0 > jdk
changeset 10717:1e4d444a20e2
8067680: (sctp) Possible race initializing native IDs
Reviewed-by: chegar, rriggs
author | robm |
---|---|
date | Thu, 29 Jan 2015 14:59:42 +0000 |
parents | 2210d14a72bd |
children | cf999ba47c04 |
files | src/solaris/native/sun/nio/ch/sctp/SctpNet.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/solaris/native/sun/nio/ch/sctp/SctpNet.c Fri Jan 23 15:03:47 2015 +0000 +++ b/src/solaris/native/sun/nio/ch/sctp/SctpNet.c Thu Jan 29 14:59:42 2015 +0000 @@ -315,11 +315,12 @@ 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"); } }