-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent reads from this.process when this.process can be async updated.
Only synchronized methods can write to this.process, and we don't want to synchronize too much. Also fixes the isAlive method in FakeSubprocess. RELNOTES: n/a PiperOrigin-RevId: 341587731
- Loading branch information
1 parent
a9bf093
commit 780e27d
Showing
3 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ public void close() { | |
|
||
@Override | ||
public boolean isAlive() { | ||
return wasDestroyed; | ||
return !wasDestroyed; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters