diff options
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 791c6a6551f..8bcf1b06133 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -248,6 +248,13 @@ MUST_CHECK bool rust_task::yield() { // This check is largely superfluous; it's the one after the context swap // that really matters. This one allows us to assert a useful invariant. + + // NB: This takes lifecycle_lock three times, and I believe that none of + // them are actually necessary, as per #3213. Removing the locks here may + // cause *harmless* races with a killer... but I didn't observe any + // substantial performance improvement from removing them, even with + // msgsend-ring-pipes, and also it's my last day, so I'm not about to + // remove them. -- bblum if (must_fail_from_being_killed()) { { scoped_lock with(lifecycle_lock);  | 
