refactor(rust): drop a comment that repeats the reserve doc

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Yujong Lee 2026-09-19 18:22:06 +00:00
parent 38fa8a7f55
commit cc23e5781e

View file

@ -58,8 +58,6 @@ impl ForkGate {
pub(crate) fn reserve(&self, pid: u32) -> Result<(), RuntimeAlreadyStarted> {
self.fork_only_pid.store(pid, Ordering::SeqCst);
if self.runtime_pid.load(Ordering::SeqCst) == pid {
// Nothing may change for a process that already runs the runtime: its children
// must still be refused.
let _ =
self.fork_only_pid
.compare_exchange(pid, UNSET, Ordering::SeqCst, Ordering::SeqCst);