diff options
| author | 2012-08-31 18:20:08 -0700 | |
|---|---|---|
| committer | 2012-08-31 18:26:30 -0700 | |
| commit | c747cffa950b8398cb8844d47e2253214c855750 (patch) | |
| tree | 4b77ecc1dc6f2a76c755381a2925f34ed080c74f /src/compiler/codegen/CompilerCodegen.h | |
| parent | faf459e5decdfcf6dd7844947898beefe31e6435 (diff) | |
Runnable -> Suspended -> Runnable, avoid 2 locks
Allow some freedom in the Transtion code to change thread state without
holding a lock in 2 cases where it is safe.
1) into Suspended we know that we're suspended and so checking the
suspend count is a mute point.
2) when going into Runnable we can do a racy check before doing a
secondary check after we've acquired a share on the mutator lock.
Change-Id: Ibf0e5f42acc1ff3cf06312ef001a74344d4dfa8c
Diffstat (limited to 'src/compiler/codegen/CompilerCodegen.h')
0 files changed, 0 insertions, 0 deletions