diff --git a/src/hotspot/share/prims/jvmtiRedefineClasses.cpp b/src/hotspot/share/prims/jvmtiRedefineClasses.cpp index b28a8c4a859..0c28d5aec12 100644 --- a/src/hotspot/share/prims/jvmtiRedefineClasses.cpp +++ b/src/hotspot/share/prims/jvmtiRedefineClasses.cpp @@ -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; }