From 97d17fcfd19594afc03ee68e9d74b9db14798c7f Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 4 Oct 2017 15:32:40 -0700 Subject: [PATCH] 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 --- src/runtime/mheap.go | 2 ++ 1 file changed, 2 insertions(+) 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