From ab7743522380949d00975b56ba8c8fd017113d56 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Wed, 16 Dec 2015 17:16:59 -0800 Subject: [PATCH] docs: update comment docs for GetG --- proc/threads.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/proc/threads.go b/proc/threads.go index 2db494e5..0b590689 100644 --- a/proc/threads.go +++ b/proc/threads.go @@ -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