Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(444)

Delta Between Two Patch Sets: src/pkg/runtime/runtime.h

Issue 123640043: code review 123640043: runtime: convert common scheduler functions to Go (Closed)
Left Patch Set: diff -r 9985ecf9828f87d8887550109060357e2163ab8a https://dvyukov%40google.com@code.google.com/p/go/ Created 10 years, 7 months ago
Right Patch Set: diff -r d290f48255fb933439916159ecd5301c5bb5c301 https://dvyukov%40google.com@code.google.com/p/go/ Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/proc.go ('k') | src/pkg/runtime/sema.goc » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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
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
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 };
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b