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 #include "runtime.h" | 5 #include "runtime.h" |
6 #include "arch_GOARCH.h" | 6 #include "arch_GOARCH.h" |
7 #include "malloc.h" | 7 #include "malloc.h" |
8 #include "stack.h" | 8 #include "stack.h" |
9 #include "race.h" | 9 #include "race.h" |
10 #include "type.h" | 10 #include "type.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 static void runqgrow(P*); | 80 static void runqgrow(P*); |
81 static G* runqsteal(P*, P*); | 81 static G* runqsteal(P*, P*); |
82 static void mput(M*); | 82 static void mput(M*); |
83 static M* mget(void); | 83 static M* mget(void); |
84 static void mcommoninit(M*); | 84 static void mcommoninit(M*); |
85 static void schedule(void); | 85 static void schedule(void); |
86 static void procresize(int32); | 86 static void procresize(int32); |
87 static void acquirep(P*); | 87 static void acquirep(P*); |
88 static P* releasep(void); | 88 static P* releasep(void); |
89 static void newm(void(*)(void), P*); | 89 static void newm(void(*)(void), P*); |
90 static void goidle(void); | |
91 static void stopm(void); | 90 static void stopm(void); |
92 static void startm(P*, bool); | 91 static void startm(P*, bool); |
93 static void handoffp(P*); | 92 static void handoffp(P*); |
94 static void wakep(void); | 93 static void wakep(void); |
95 static void stoplockedm(void); | 94 static void stoplockedm(void); |
96 static void startlockedm(G*); | 95 static void startlockedm(G*); |
97 static void sysmon(void); | 96 static void sysmon(void); |
98 static uint32 retake(uint32*); | 97 static uint32 retake(uint32*); |
99 static void inclocked(int32); | 98 static void inclocked(int32); |
100 static void checkdead(void); | 99 static void checkdead(void); |
(...skipping 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2470 runtime·haszeroargs(uintptr pc) | 2469 runtime·haszeroargs(uintptr pc) |
2471 { | 2470 { |
2472 return pc == (uintptr)runtime·goexit || | 2471 return pc == (uintptr)runtime·goexit || |
2473 pc == (uintptr)runtime·mcall || | 2472 pc == (uintptr)runtime·mcall || |
2474 pc == (uintptr)runtime·mstart || | 2473 pc == (uintptr)runtime·mstart || |
2475 pc == (uintptr)runtime·lessstack || | 2474 pc == (uintptr)runtime·lessstack || |
2476 pc == (uintptr)runtime·morestack || | 2475 pc == (uintptr)runtime·morestack || |
2477 pc == (uintptr)_rt0_go; | 2476 pc == (uintptr)_rt0_go; |
2478 } | 2477 } |
2479 | 2478 |
LEFT | RIGHT |