Skip to content

Commit

Permalink
[Wisp] Fix wrong assert.
Browse files Browse the repository at this point in the history
Summary: WispTask could be moved between carriers during
yield, so should refetch current task.

Test Plan: com/alibaba/wisp

Reviewed-by: yulei

Issue:
dragonwell-project#140
  • Loading branch information
ZhaiMo15 committed Aug 25, 2023
1 parent 2c13b08 commit 9a783f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 9a783f5

Please sign in to comment.