src/share/vm/classfile/vmSymbols.hpp

Print this page
rev 8963 : 8194653: Deadlock involving FileSystems.getDefault and System.loadLibrary call
Preload classes in the j.n.f.FileSystems.getDefault() path to avoid a potential
deadlock between class loading and native library loading.

@@ -607,10 +607,15 @@
   template(classLoader_name,                           "classLoader")                                             \
                                                                                                                   \
   /* trace signatures */                                                                                          \
   TRACE_TEMPLATES(template)                                                                                       \
                                                                                                                   \
+  /* bugid 8194653: For early initialization */                                                                   \
+  template(java_nio_file_FileSystems,                  "java/nio/file/FileSystems")                               \
+  template(getDefault_name,                            "getDefault")                                              \
+  template(getDefault_signature,                       "()Ljava/nio/file/FileSystem;")                            \
+                                                                                                                  \
   /*end*/
 
 // Here are all the intrinsics known to the runtime and the CI.
 // Each intrinsic consists of a public enum name (like _hashCode),
 // followed by a specification of its klass, name, and signature: