Commit 91bb1d73 authored by Austin Clements's avatar Austin Clements

runtime: move m.thread to mOS

This field is only used on Windows.

Change-Id: I12d4df09261f8e7ad54c2abd7beda669af28c8e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/207778
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
parent 9c6f6409
...@@ -143,6 +143,8 @@ func tstart_stdcall(newm *m) ...@@ -143,6 +143,8 @@ func tstart_stdcall(newm *m)
func ctrlhandler() func ctrlhandler()
type mOS struct { type mOS struct {
thread uintptr // thread handle; accessed atomically
waitsema uintptr // semaphore for parking on locks waitsema uintptr // semaphore for parking on locks
resumesema uintptr // semaphore to indicate suspend/resume resumesema uintptr // semaphore to indicate suspend/resume
} }
......
...@@ -522,8 +522,7 @@ type m struct { ...@@ -522,8 +522,7 @@ type m struct {
waittraceskip int waittraceskip int
startingtrace bool startingtrace bool
syscalltick uint32 syscalltick uint32
thread uintptr // thread handle freelink *m // on sched.freem
freelink *m // on sched.freem
// these are here because they are too large to be on the stack // these are here because they are too large to be on the stack
// of low-level NOSPLIT functions. // of low-level NOSPLIT functions.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment