mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
docs: update comment docs for GetG
This commit is contained in:
@ -246,9 +246,8 @@ func (thread *Thread) SetPC(pc uint64) error {
|
||||
|
||||
// Returns information on the G (goroutine) that is executing on this thread.
|
||||
//
|
||||
// The G structure for a thread is stored in thread local memory. Execute instructions
|
||||
// that move the *G structure into a CPU register, and then grab
|
||||
// the new registers and parse the G structure.
|
||||
// The G structure for a thread is stored in thread local storage. Here we simply
|
||||
// calculate the address and read and parse the G struct.
|
||||
//
|
||||
// We cannot simply use the allg linked list in order to find the M that represents
|
||||
// the given OS thread and follow its G pointer because on Darwin mach ports are not
|
||||
|
||||
Reference in New Issue
Block a user