src/java.base/unix/classes/sun/nio/fs/GnomeFileTypeDetector.java

Print this page
rev 12529 : 8080115: (fs) Crash in libgio when calling Files.probeContentType(path) from parallel threads
Summary: Make GnomeFileTypeDetector.probeGio() synchronized and add a regression test based on the test source included in JDK-8080115.
Reviewed-by: XXX

*** 65,75 **** } // GIO private static native boolean initializeGio(); ! private static native byte[] probeGio(long pathAddress); static { AccessController.doPrivileged(new PrivilegedAction<>() { public Void run() { System.loadLibrary("nio"); --- 65,75 ---- } // GIO private static native boolean initializeGio(); ! private static synchronized native byte[] probeGio(long pathAddress); static { AccessController.doPrivileged(new PrivilegedAction<>() { public Void run() { System.loadLibrary("nio");