Descriptionruntime: add an allocation and free tracing for gc debugging
Output for an allocation and free (sweep) follows
MProf_Malloc(p=0xc2100210a0, size=0x50, type=0x0 <single object>)
#0 0x46ee15 runtime.mallocgc /usr/local/google/home/cshapiro/go/src/pkg/runtime/malloc.goc:141
#1 0x47004f runtime.settype_flush /usr/local/google/home/cshapiro/go/src/pkg/runtime/malloc.goc:612
#2 0x45f92c gc /usr/local/google/home/cshapiro/go/src/pkg/runtime/mgc0.c:2071
#3 0x45f89e mgc /usr/local/google/home/cshapiro/go/src/pkg/runtime/mgc0.c:2050
#4 0x45258b runtime.mcall /usr/local/google/home/cshapiro/go/src/pkg/runtime/asm_amd64.s:179
MProf_Free(p=0xc2100210a0, size=0x50)
#0 0x46ee15 runtime.mallocgc /usr/local/google/home/cshapiro/go/src/pkg/runtime/malloc.goc:141
#1 0x47004f runtime.settype_flush /usr/local/google/home/cshapiro/go/src/pkg/runtime/malloc.goc:612
#2 0x45f92c gc /usr/local/google/home/cshapiro/go/src/pkg/runtime/mgc0.c:2071
#3 0x45f89e mgc /usr/local/google/home/cshapiro/go/src/pkg/runtime/mgc0.c:2050
#4 0x45258b runtime.mcall /usr/local/google/home/cshapiro/go/src/pkg/runtime/asm_amd64.s:179
Patch Set 1 #Patch Set 2 : diff -r e081962da65c https://code.google.com/p/go/ #Patch Set 3 : diff -r e081962da65c https://code.google.com/p/go/ #
Total comments: 7
Patch Set 4 : diff -r e081962da65c https://code.google.com/p/go/ #
Total comments: 6
Patch Set 5 : diff -r e081962da65c https://code.google.com/p/go/ #Patch Set 6 : diff -r e081962da65c https://code.google.com/p/go/ #
Total comments: 2
Patch Set 7 : diff -r e081962da65c https://code.google.com/p/go/ #Patch Set 8 : diff -r 3afe9c5bc283 https://code.google.com/p/go/ #
MessagesTotal messages: 14
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||