diff --git a/src/java.base/share/classes/com/alibaba/wisp/engine/WispCarrier.java b/src/java.base/share/classes/com/alibaba/wisp/engine/WispCarrier.java index 8c12d166d4d..d77b5ed6517 100644 --- a/src/java.base/share/classes/com/alibaba/wisp/engine/WispCarrier.java +++ b/src/java.base/share/classes/com/alibaba/wisp/engine/WispCarrier.java @@ -229,7 +229,7 @@ final void schedule() { } private void checkAndDispatchShutdown() { - assert WispCarrier.current() == this; + WispTask current = WispCarrier.current().getCurrentTask(); if ((engine.hasBeenShutdown || (current.inDestoryedGroup() && current.inheritedFromNonRootContainer())) && !WispTask.SHUTDOWN_TASK_NAME.equals(current.getName())