Skip to content

Commit 4a03402

Browse files
Merge branch 'master' into rc
2 parents 7c54af5 + 04730e3 commit 4a03402

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

runtime/legion/legion_instances.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3942,9 +3942,11 @@ namespace Legion {
39423942
if (runtime->profiler != NULL)
39433943
runtime->profiler->handle_failed_instance_allocation();
39443944
}
3945+
fevent = current_unique_event;
39453946
// No matter what trigger the event
3947+
// Can't read anything after trigger the event as the object
3948+
// might be deleted after we do that
39463949
Runtime::trigger_event(profiling_ready);
3947-
fevent = current_unique_event;
39483950
return true;
39493951
}
39503952

runtime/legion/runtime.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11029,8 +11029,10 @@ namespace Legion {
1102911029
assert(measured);
1103011030
#endif
1103111031
success.store(result.success);
11032-
Runtime::trigger_event(ready);
1103311032
fevent = unique_event;
11033+
// Can't read anything after trigger the event as the object
11034+
// might be deleted after we do that
11035+
Runtime::trigger_event(ready);
1103411036
return true;
1103511037
}
1103611038

0 commit comments

Comments
 (0)