mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +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. | // 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 | // The G structure for a thread is stored in thread local storage. Here we simply | ||||||
| // that move the *G structure into a CPU register, and then grab | // calculate the address and read and parse the G struct. | ||||||
| // the new registers and parse the G structure. |  | ||||||
| // | // | ||||||
| // We cannot simply use the allg linked list in order to find the M that represents | // 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 | // the given OS thread and follow its G pointer because on Darwin mach ports are not | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Derek Parker
					Derek Parker