diff src/share/vm/prims/jvmtiEnv.cpp @ 20667:887a7cedb892

8064701: Some CDS optimizations should be disabled if bootclasspath is modified by JVMTI Summary: Added API to track bootclasspath modification Reviewed-by: jiangli, dholmes, minqi
author iklam
date Tue, 18 Nov 2014 03:38:50 -0800
parents 997fd9660dd5
children 7848fc12602b
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiEnv.cpp	Thu Nov 20 11:06:26 2014 +0100
+++ b/src/share/vm/prims/jvmtiEnv.cpp	Tue Nov 18 03:38:50 2014 -0800
@@ -23,6 +23,7 @@
  */
 
 #include "precompiled.hpp"
+#include "classfile/classLoaderExt.hpp"
 #include "classfile/systemDictionary.hpp"
 #include "classfile/vmSymbols.hpp"
 #include "interpreter/bytecodeStream.hpp"
@@ -475,7 +476,7 @@
     if (TraceClassLoading) {
       tty->print_cr("[Opened %s]", zip_entry->name());
     }
-    ClassLoader::add_to_list(zip_entry);
+    ClassLoaderExt::append_boot_classpath(zip_entry);
     return JVMTI_ERROR_NONE;
   } else {
     return JVMTI_ERROR_WRONG_PHASE;