mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: move m's OS-specific semaphore fields into mOS
Allows removing fields that aren't relevant to a particular OS or changing their types to match the underlying OS system calls they'll be used for. Change-Id: I5cea89ee77b4e7b985bff41337e561887c3272ff Reviewed-on: https://go-review.googlesource.com/16176 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
d42cc10283
commit
ec9aae772c
16 changed files with 70 additions and 64 deletions
|
|
@ -308,9 +308,6 @@ type m struct {
|
|||
fflag uint32 // floating point compare flags
|
||||
locked uint32 // tracking for lockosthread
|
||||
nextwaitm uintptr // next m waiting for lock
|
||||
waitsema uintptr // semaphore for parking on locks
|
||||
waitsemacount uint32
|
||||
waitsemalock uint32
|
||||
gcstats gcstats
|
||||
needextram bool
|
||||
traceback uint8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue