]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: force the type of specialfinalizer into DWARF
authorKeith Randall <khr@golang.org>
Wed, 4 Oct 2017 22:32:40 +0000 (15:32 -0700)
committerKeith Randall <khr@golang.org>
Thu, 5 Oct 2017 20:03:42 +0000 (20:03 +0000)
The core dump reader wants to know the layout of this type.
No variable has this type, so it wasn't previously dumped
to DWARF output.

Change-Id: I982040b81bff202976743edc7fe53247533a9d81
Reviewed-on: https://go-review.googlesource.com/68312
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mheap.go

index 3aaa09d7036a2af070fb3795d4f5892f930ca2a2..698dbd7479c2880f7621a91b50cb0ba45893420b 100644 (file)
@@ -160,6 +160,8 @@ type mheap struct {
        specialfinalizeralloc fixalloc // allocator for specialfinalizer*
        specialprofilealloc   fixalloc // allocator for specialprofile*
        speciallock           mutex    // lock for special record allocators.
+
+       unused *specialfinalizer // never set, just here to force the specialfinalizer type into DWARF
 }
 
 var mheap_ mheap