From: Keith Randall Date: Wed, 4 Oct 2017 22:32:40 +0000 (-0700) Subject: runtime: force the type of specialfinalizer into DWARF X-Git-Tag: go1.10beta1~856 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=97d17fcfd19594afc03ee68e9d74b9db14798c7f;p=gostls13.git 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 --- diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index 3aaa09d703..698dbd7479 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -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