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 #include "runtime.h" | 5 #include "runtime.h" |
6 #include "arch.h" | 6 #include "arch.h" |
7 #include "defs.h" | 7 #include "defs.h" |
8 #include "malloc.h" | 8 #include "malloc.h" |
9 #include "os.h" | 9 #include "os.h" |
10 | 10 |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 g->lockedm = nil; | 1185 g->lockedm = nil; |
1186 } | 1186 } |
1187 | 1187 |
1188 // for testing of wire, unwire | 1188 // for testing of wire, unwire |
1189 void | 1189 void |
1190 runtime·mid(uint32 ret) | 1190 runtime·mid(uint32 ret) |
1191 { | 1191 { |
1192 ret = m->id; | 1192 ret = m->id; |
1193 FLUSH(&ret); | 1193 FLUSH(&ret); |
1194 } | 1194 } |
| 1195 |
| 1196 void |
| 1197 runtime·Goroutines(int32 ret) |
| 1198 { |
| 1199 ret = runtime·sched.gcount; |
| 1200 FLUSH(&ret); |
| 1201 } |
OLD | NEW |