1
0
mirror of https://github.com/golang/go synced 2024-10-02 02:28:32 -06:00

runtime: force the type of specialfinalizer into DWARF

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>
This commit is contained in:
Keith Randall 2017-10-04 15:32:40 -07:00
parent c85b12b579
commit 97d17fcfd1

View 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