src/share/vm/prims/jvmtiEnv.cpp
Print this page
rev 6916 : 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
*** 21,30 ****
--- 21,31 ----
* questions.
*
*/
#include "precompiled.hpp"
+ #include "classfile/classLoaderExt.hpp"
#include "classfile/systemDictionary.hpp"
#include "classfile/vmSymbols.hpp"
#include "interpreter/bytecodeStream.hpp"
#include "interpreter/interpreter.hpp"
#include "jvmtifiles/jvmtiEnv.hpp"
*** 473,483 ****
// add the jar file to the bootclasspath
if (TraceClassLoading) {
tty->print_cr("[Opened %s]", zip_entry->name());
}
! ClassLoader::add_to_list(zip_entry);
return JVMTI_ERROR_NONE;
} else {
return JVMTI_ERROR_WRONG_PHASE;
}
--- 474,484 ----
// add the jar file to the bootclasspath
if (TraceClassLoading) {
tty->print_cr("[Opened %s]", zip_entry->name());
}
! ClassLoaderExt::append_boot_classpath(zip_entry);
return JVMTI_ERROR_NONE;
} else {
return JVMTI_ERROR_WRONG_PHASE;
}