LEFT | RIGHT |
(no file at all) | |
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 uintptr syscallsp; // if status==Gsyscall, syscallsp = sched.sp to
use during gc | 260 uintptr syscallsp; // if status==Gsyscall, syscallsp = sched.sp to
use during gc |
261 uintptr syscallpc; // if status==Gsyscall, syscallpc = sched.pc to
use during gc | 261 uintptr syscallpc; // if status==Gsyscall, syscallpc = sched.pc to
use during gc |
262 uintptr syscallguard; // if status==Gsyscall, syscallguard = stackguar
d to use during gc | 262 uintptr syscallguard; // if status==Gsyscall, syscallguard = stackguar
d to use during gc |
263 uintptr stackguard; // same as stackguard0, but not set to StackPree
mpt | 263 uintptr stackguard; // same as stackguard0, but not set to StackPree
mpt |
264 uintptr stack0; | 264 uintptr stack0; |
265 uintptr stacksize; | 265 uintptr stacksize; |
266 void* param; // passed parameter on wakeup | 266 void* param; // passed parameter on wakeup |
267 int16 status; | 267 int16 status; |
268 int64 goid; | 268 int64 goid; |
269 int64 waitsince; // approx time when the G become blocked | 269 int64 waitsince; // approx time when the G become blocked |
270 » int8*» waitreason;» // if status==Gwaiting | 270 » String» waitreason;» // if status==Gwaiting |
271 G* schedlink; | 271 G* schedlink; |
272 bool ispanic; | 272 bool ispanic; |
273 bool issystem; // do not output in stack dump | 273 bool issystem; // do not output in stack dump |
274 bool isbackground; // ignore in deadlock detector | 274 bool isbackground; // ignore in deadlock detector |
275 bool preempt; // preemption signal, duplicates stackguard0 = S
tackPreempt | 275 bool preempt; // preemption signal, duplicates stackguard0 = S
tackPreempt |
276 bool paniconfault; // panic (instead of crash) on unexpected fault
address | 276 bool paniconfault; // panic (instead of crash) on unexpected fault
address |
277 int8 raceignore; // ignore race detection events | 277 int8 raceignore; // ignore race detection events |
278 M* m; // for debuggers, but offset not hard-coded | 278 M* m; // for debuggers, but offset not hard-coded |
279 M* lockedm; | 279 M* lockedm; |
280 int32 sig; | 280 int32 sig; |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 void runtime·atomicstorep(void* volatile*, void*); | 915 void runtime·atomicstorep(void* volatile*, void*); |
916 void runtime·atomicor8(byte volatile*, byte); | 916 void runtime·atomicor8(byte volatile*, byte); |
917 | 917 |
918 void runtime·setg(G*); | 918 void runtime·setg(G*); |
919 void runtime·newextram(void); | 919 void runtime·newextram(void); |
920 void runtime·exit(int32); | 920 void runtime·exit(int32); |
921 void runtime·breakpoint(void); | 921 void runtime·breakpoint(void); |
922 void runtime·gosched(void); | 922 void runtime·gosched(void); |
923 void runtime·gosched_m(G*); | 923 void runtime·gosched_m(G*); |
924 void runtime·schedtrace(bool); | 924 void runtime·schedtrace(bool); |
925 void» runtime·park(bool(*)(G*, void*), void*, int8*); | 925 void» runtime·park(bool(*)(G*, void*), void*, String); |
926 void» runtime·parkunlock(Lock*, int8*); | 926 void» runtime·parkunlock(Lock*, String); |
927 void» runtime·tsleep(int64, int8*); | 927 void» runtime·tsleep(int64, String); |
928 M* runtime·newm(void); | 928 M* runtime·newm(void); |
929 void runtime·goexit(void); | 929 void runtime·goexit(void); |
930 void runtime·asmcgocall(void (*fn)(void*), void*); | 930 void runtime·asmcgocall(void (*fn)(void*), void*); |
931 void runtime·entersyscall(void); | 931 void runtime·entersyscall(void); |
932 void runtime·entersyscallblock(void); | 932 void runtime·entersyscallblock(void); |
933 void runtime·exitsyscall(void); | 933 void runtime·exitsyscall(void); |
934 G* runtime·newproc1(FuncVal*, byte*, int32, int32, void*); | 934 G* runtime·newproc1(FuncVal*, byte*, int32, int32, void*); |
935 bool runtime·sigsend(int32 sig); | 935 bool runtime·sigsend(int32 sig); |
936 int32 runtime·callers(int32, uintptr*, int32); | 936 int32 runtime·callers(int32, uintptr*, int32); |
937 int32 runtime·gcallers(G*, int32, uintptr*, int32); | 937 int32 runtime·gcallers(G*, int32, uintptr*, int32); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 extern float64 runtime·neginf; | 1150 extern float64 runtime·neginf; |
1151 extern uint64 ·nan; | 1151 extern uint64 ·nan; |
1152 extern uint64 ·posinf; | 1152 extern uint64 ·posinf; |
1153 extern uint64 ·neginf; | 1153 extern uint64 ·neginf; |
1154 #define ISNAN(f) ((f) != (f)) | 1154 #define ISNAN(f) ((f) != (f)) |
1155 | 1155 |
1156 enum | 1156 enum |
1157 { | 1157 { |
1158 UseSpanType = 1, | 1158 UseSpanType = 1, |
1159 }; | 1159 }; |
LEFT | RIGHT |