Skip to content

Commit

Permalink
Merge branch 'master' into rc
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Sep 25, 2024
2 parents 7c54af5 + 04730e3 commit 4a03402
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion runtime/legion/legion_instances.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3942,9 +3942,11 @@ namespace Legion {
if (runtime->profiler != NULL)
runtime->profiler->handle_failed_instance_allocation();
}
fevent = current_unique_event;
// No matter what trigger the event
// Can't read anything after trigger the event as the object
// might be deleted after we do that
Runtime::trigger_event(profiling_ready);
fevent = current_unique_event;
return true;
}

Expand Down
4 changes: 3 additions & 1 deletion runtime/legion/runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11029,8 +11029,10 @@ namespace Legion {
assert(measured);
#endif
success.store(result.success);
Runtime::trigger_event(ready);
fevent = unique_event;
// Can't read anything after trigger the event as the object
// might be deleted after we do that
Runtime::trigger_event(ready);
return true;
}

Expand Down

0 comments on commit 4a03402

Please sign in to comment.