LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 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 "defs_GOOS_GOARCH.h" | 7 #include "defs_GOOS_GOARCH.h" |
8 #include "os_GOOS.h" | 8 #include "os_GOOS.h" |
9 #include "malloc.h" | 9 #include "malloc.h" |
10 #include "textflag.h" | 10 #include "textflag.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 return; | 92 return; |
93 } | 93 } |
94 | 94 |
95 p = runtime·mmap(v, n, PROT_READ|PROT_WRITE, MAP_ANON|MAP_FIXED|MAP_PRIV
ATE, -1, 0); | 95 p = runtime·mmap(v, n, PROT_READ|PROT_WRITE, MAP_ANON|MAP_FIXED|MAP_PRIV
ATE, -1, 0); |
96 if(p == (void*)ENOMEM) | 96 if(p == (void*)ENOMEM) |
97 runtime·throw("runtime: out of memory"); | 97 runtime·throw("runtime: out of memory"); |
98 if(p != v) | 98 if(p != v) |
99 runtime·throw("runtime: cannot map pages in arena address space"
); | 99 runtime·throw("runtime: cannot map pages in arena address space"
); |
100 } | 100 } |
LEFT | RIGHT |