# HG changeset patch # User weijun # Date 1432649437 -28800 # Node ID 6d090852a86addbda184412386af9e8cf9f4a31c # Parent 7fff87625aba0222b3e0614261a78bbe454d6458 8080911: sun/security/krb5/auto/UseCacheAndStoreKey.java timed out intermittently Reviewed-by: xuelei diff -r 7fff87625aba -r 6d090852a86a jdk/src/java.security.jgss/share/classes/sun/security/krb5/Config.java --- a/jdk/src/java.security.jgss/share/classes/sun/security/krb5/Config.java Tue May 26 10:43:53 2015 +0200 +++ b/jdk/src/java.security.jgss/share/classes/sun/security/krb5/Config.java Tue May 26 22:10:37 2015 +0800 @@ -110,8 +110,10 @@ * java.security.krb5.kdc not specified, error reading configuration file. */ - public static synchronized void refresh() throws KrbException { - singleton = new Config(); + public static void refresh() throws KrbException { + synchronized (Config.class) { + singleton = new Config(); + } KdcComm.initStatic(); EType.initStatic(); Checksum.initStatic();