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,11 +65,11 @@
     // GIO
     private static native boolean initializeGio();
-    private static native byte[] probeGio(long pathAddress);
+    private static synchronized native byte[] probeGio(long pathAddress);
     static {
         AccessController.doPrivileged(new PrivilegedAction<>() {
             public Void run() {