mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8212200: assert when shared java.lang.Object is redefined by JVMTI agent
Reviewed-by: dholmes, jiangli, hseigel, lfoltan, sspitsyn
This commit is contained in:
parent
02966a7b67
commit
93395f6a9e
11 changed files with 375 additions and 43 deletions
|
@ -994,6 +994,20 @@ class JvmtiClassFileLoadHookPoster : public StackObj {
|
|||
}
|
||||
};
|
||||
|
||||
bool JvmtiExport::is_early_phase() {
|
||||
return JvmtiEnvBase::get_phase() <= JVMTI_PHASE_PRIMORDIAL;
|
||||
}
|
||||
|
||||
bool JvmtiExport::has_early_class_hook_env() {
|
||||
JvmtiEnvIterator it;
|
||||
for (JvmtiEnv* env = it.first(); env != NULL; env = it.next(env)) {
|
||||
if (env->early_class_hook_env()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool JvmtiExport::_should_post_class_file_load_hook = false;
|
||||
|
||||
// this entry is for class file load hook on class load, redefine and retransform
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue