-
-
Save awreece/2471278 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/pkg/runtime/malloc.goc Mon Apr 09 15:39:59 2012 -0400 | |
+++ b/src/pkg/runtime/malloc.goc Mon Apr 23 17:37:10 2012 -0400 | |
@@ -25,7 +25,7 @@ | |
// Small objects are allocated from the per-thread cache's free lists. | |
// Large objects (> 32 kB) are allocated straight from the heap. | |
void* | |
-runtime·mallocgc(uintptr size, uint32 flag, int32 dogc, int32 zeroed) | |
+INVALID_FUNC_DECLruntime·mallocgc(uintptr size, uint32 flag, int32 dogc, int32 zeroed) | |
{ | |
int32 sizeclass, rate; | |
MCache *c; | |
@@ -33,7 +33,7 @@ | |
MSpan *s; | |
void *v; | |
- if(runtime·gcwaiting && g != m->g0 && m->locks == 0) | |
+ if(INVALID_IN_FUNCruntime·gcwaiting && g != m->g0 && m->locks == 0) | |
runtime·gosched(); | |
if(m->mallocing) | |
runtime·throw("malloc/free - deadlock"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$GOROOT/src/pkg/runtime$ /usr/local/src/go/pkg/tool/linux_386/dist install -v | |
pkg/runtime | |
$GOROOT/src/pkg/runtime$ go tool dist install -v | |
pkg/runtime | |
$GOROOT/src/pkg/runtime$ make | |
go tool dist install -v | |
pkg/runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 9a55b03991e3 src/pkg/runtime/malloc.goc | |
--- a/src/pkg/runtime/malloc.goc Mon Apr 09 15:39:59 2012 -0400 | |
+++ b/src/pkg/runtime/malloc.goc Mon Apr 23 17:34:17 2012 -0400 | |
@@ -25,7 +25,7 @@ | |
// Small objects are allocated from the per-thread cache's free lists. | |
// Large objects (> 32 kB) are allocated straight from the heap. | |
void* | |
-runtime·mallocgc(uintptr size, uint32 flag, int32 dogc, int32 zeroed) | |
+INVALIDruntime·mallocgc(uintptr size, uint32 flag, int32 dogc, int32 zeroed) | |
{ | |
int32 sizeclass, rate; | |
MCache *c; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment