From 8b740b46091c853c7cb66c361deda6dfbb2cedc8 Mon Sep 17 00:00:00 2001 From: Patricio Chilano Mateo Date: Thu, 9 Mar 2023 22:53:44 +0000 Subject: [PATCH] 8302779: HelidonAppTest.java fails with "assert(_cb == CodeCache::find_blob(pc())) failed: Must be the same" or SIGSEGV Reviewed-by: coleenp, sspitsyn --- src/hotspot/share/prims/jvmtiRedefineClasses.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; }