Skip to content

Instantly share code, notes, and snippets.

@awreece
Created April 30, 2012 23:53
Show Gist options
  • Save awreece/2563735 to your computer and use it in GitHub Desktop.
Save awreece/2563735 to your computer and use it in GitHub Desktop.
Bad go build
$ go build -v
$ go tool dist install -v
$ hg diff malloc.goc
diff -r 4875dfefc730 src/pkg/runtime/malloc.goc
--- a/src/pkg/runtime/malloc.goc Mon Apr 16 10:25:20 2012 -0700
+++ b/src/pkg/runtime/malloc.goc Mon Apr 30 19:52:32 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