< prev index next >

src/hotspot/share/prims/jvmtiEnv.cpp

Print this page
@@ -666,11 +666,11 @@
      // The phase is checked by the wrapper that called this function,
      // but this thread could be racing with the thread that is
      // terminating the VM so we check one more time.
  
      // create the zip entry
-     ClassPathZipEntry* zip_entry = ClassLoader::create_class_path_zip_entry(segment, true);
+     ClassPathZipEntry* zip_entry = ClassLoader::create_class_path_zip_entry(segment);
      if (zip_entry == nullptr) {
        return JVMTI_ERROR_ILLEGAL_ARGUMENT;
      }
  
      // add the jar file to the bootclasspath

@@ -708,11 +708,11 @@
      JavaThread* THREAD = JavaThread::current(); // For exception macros.
      HandleMark hm(THREAD);
  
      // create the zip entry (which will open the zip file and hence
      // check that the segment is indeed a zip file).
-     ClassPathZipEntry* zip_entry = ClassLoader::create_class_path_zip_entry(segment, false);
+     ClassPathZipEntry* zip_entry = ClassLoader::create_class_path_zip_entry(segment);
      if (zip_entry == nullptr) {
        return JVMTI_ERROR_ILLEGAL_ARGUMENT;
      }
      delete zip_entry;   // no longer needed
  
< prev index next >