8302779: HelidonAppTest.java fails with "assert(_cb == CodeCache::find_blob(pc())) failed: Must be the same" or SIGSEGV

Reviewed-by: coleenp, sspitsyn
This commit is contained in:
Patricio Chilano Mateo 2023-03-09 22:53:44 +00:00
parent 562c8fc668
commit 8b740b4609

View File

@ -343,6 +343,10 @@ bool VM_RedefineClasses::is_modifiable_class(oop klass_mirror) {
if (InstanceKlass::cast(k)->is_hidden()) {
return false;
}
if (InstanceKlass::cast(k) == vmClasses::Continuation_klass()) {
// Don't redefine Continuation class. See 8302779.
return false;
}
return true;
}