LEFT | RIGHT |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 * basic types | 6 * basic types |
7 */ | 7 */ |
8 typedef signed char int8; | 8 typedef signed char int8; |
9 typedef unsigned char uint8; | 9 typedef unsigned char uint8; |
10 typedef signed short int16; | 10 typedef signed short int16; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 }; | 216 }; |
217 struct G | 217 struct G |
218 { | 218 { |
219 uintptr stackguard; // cannot move - also known to linker, libmach,
runtime/cgo | 219 uintptr stackguard; // cannot move - also known to linker, libmach,
runtime/cgo |
220 uintptr stackbase; // cannot move - also known to libmach, runtime/
cgo | 220 uintptr stackbase; // cannot move - also known to libmach, runtime/
cgo |
221 Defer* defer; | 221 Defer* defer; |
222 Panic* panic; | 222 Panic* panic; |
223 Gobuf sched; | 223 Gobuf sched; |
224 uintptr gcstack; // if status==Gsyscall, gcstack = stackb
ase to use during gc | 224 uintptr gcstack; // if status==Gsyscall, gcstack = stackb
ase to use during gc |
225 uintptr gcsp; // if status==Gsyscall, gcsp = sched.sp to use d
uring gc | 225 uintptr gcsp; // if status==Gsyscall, gcsp = sched.sp to use d
uring gc |
| 226 byte* gcpc; // if status==Gsyscall, gcpc = sched.pc to use d
uring gc |
226 uintptr gcguard; // if status==Gsyscall, gcguard = stackg
uard to use during gc | 227 uintptr gcguard; // if status==Gsyscall, gcguard = stackg
uard to use during gc |
227 uintptr stack0; | 228 uintptr stack0; |
228 FuncVal* fnstart; // initial function | 229 FuncVal* fnstart; // initial function |
229 G* alllink; // on allg | 230 G* alllink; // on allg |
230 void* param; // passed parameter on wakeup | 231 void* param; // passed parameter on wakeup |
231 int16 status; | 232 int16 status; |
232 int64 goid; | 233 int64 goid; |
233 uint32 selgen; // valid sudog pointer | 234 uint32 selgen; // valid sudog pointer |
234 int8* waitreason; // if status==Gwaiting | 235 int8* waitreason; // if status==Gwaiting |
235 G* schedlink; | 236 G* schedlink; |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 extern float64 runtime·neginf; | 955 extern float64 runtime·neginf; |
955 extern uint64 ·nan; | 956 extern uint64 ·nan; |
956 extern uint64 ·posinf; | 957 extern uint64 ·posinf; |
957 extern uint64 ·neginf; | 958 extern uint64 ·neginf; |
958 #define ISNAN(f) ((f) != (f)) | 959 #define ISNAN(f) ((f) != (f)) |
959 | 960 |
960 enum | 961 enum |
961 { | 962 { |
962 UseSpanType = 1, | 963 UseSpanType = 1, |
963 }; | 964 }; |
LEFT | RIGHT |