OLD | NEW |
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 uintptr stackbase; // cannot move - also known to libmach, runtime/
cgo | 252 uintptr stackbase; // cannot move - also known to libmach, runtime/
cgo |
253 Defer* defer; | 253 Defer* defer; |
254 Panic* panic; | 254 Panic* panic; |
255 Gobuf sched; | 255 Gobuf sched; |
256 uintptr syscallstack; // if status==Gsyscall, syscallstack = s
tackbase to use during gc | 256 uintptr syscallstack; // if status==Gsyscall, syscallstack = s
tackbase to use during gc |
257 uintptr syscallsp; // if status==Gsyscall, syscallsp = sche
d.sp to use during gc | 257 uintptr syscallsp; // if status==Gsyscall, syscallsp = sche
d.sp to use during gc |
258 uintptr syscallpc; // if status==Gsyscall, syscallpc = sche
d.pc to use during gc | 258 uintptr syscallpc; // if status==Gsyscall, syscallpc = sche
d.pc to use during gc |
259 uintptr syscallguard; // if status==Gsyscall, syscallguard = s
tackguard to use during gc | 259 uintptr syscallguard; // if status==Gsyscall, syscallguard = s
tackguard to use during gc |
260 uintptr stackguard; // same as stackguard0, but not set to StackPree
mpt | 260 uintptr stackguard; // same as stackguard0, but not set to StackPree
mpt |
261 uintptr stack0; | 261 uintptr stack0; |
| 262 uintptr stacksize; |
262 G* alllink; // on allg | 263 G* alllink; // on allg |
263 void* param; // passed parameter on wakeup | 264 void* param; // passed parameter on wakeup |
264 int16 status; | 265 int16 status; |
265 int64 goid; | 266 int64 goid; |
266 uint32 selgen; // valid sudog pointer | 267 uint32 selgen; // valid sudog pointer |
267 int8* waitreason; // if status==Gwaiting | 268 int8* waitreason; // if status==Gwaiting |
268 G* schedlink; | 269 G* schedlink; |
269 bool ispanic; | 270 bool ispanic; |
270 bool issystem; // do not output in stack dump | 271 bool issystem; // do not output in stack dump |
271 bool isbackground; // ignore in deadlock detector | 272 bool isbackground; // ignore in deadlock detector |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 extern uint32 runtime·panicking; | 707 extern uint32 runtime·panicking; |
707 extern int8* runtime·goos; | 708 extern int8* runtime·goos; |
708 extern int32 runtime·ncpu; | 709 extern int32 runtime·ncpu; |
709 extern bool runtime·iscgo; | 710 extern bool runtime·iscgo; |
710 extern void (*runtime·sysargs)(int32, uint8**); | 711 extern void (*runtime·sysargs)(int32, uint8**); |
711 extern uintptr runtime·maxstring; | 712 extern uintptr runtime·maxstring; |
712 extern uint32 runtime·Hchansize; | 713 extern uint32 runtime·Hchansize; |
713 extern uint32 runtime·cpuid_ecx; | 714 extern uint32 runtime·cpuid_ecx; |
714 extern uint32 runtime·cpuid_edx; | 715 extern uint32 runtime·cpuid_edx; |
715 extern DebugVars runtime·debug; | 716 extern DebugVars runtime·debug; |
| 717 extern uintptr runtime·maxstacksize; |
716 | 718 |
717 /* | 719 /* |
718 * common functions and data | 720 * common functions and data |
719 */ | 721 */ |
720 int32 runtime·strcmp(byte*, byte*); | 722 int32 runtime·strcmp(byte*, byte*); |
721 byte* runtime·strstr(byte*, byte*); | 723 byte* runtime·strstr(byte*, byte*); |
722 intgo runtime·findnull(byte*); | 724 intgo runtime·findnull(byte*); |
723 intgo runtime·findnullw(uint16*); | 725 intgo runtime·findnullw(uint16*); |
724 void runtime·dump(byte*, int32); | 726 void runtime·dump(byte*, int32); |
725 int32 runtime·runetochar(byte*, int32); | 727 int32 runtime·runetochar(byte*, int32); |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 extern float64 runtime·neginf; | 1055 extern float64 runtime·neginf; |
1054 extern uint64 ·nan; | 1056 extern uint64 ·nan; |
1055 extern uint64 ·posinf; | 1057 extern uint64 ·posinf; |
1056 extern uint64 ·neginf; | 1058 extern uint64 ·neginf; |
1057 #define ISNAN(f) ((f) != (f)) | 1059 #define ISNAN(f) ((f) != (f)) |
1058 | 1060 |
1059 enum | 1061 enum |
1060 { | 1062 { |
1061 UseSpanType = 1, | 1063 UseSpanType = 1, |
1062 }; | 1064 }; |
OLD | NEW |