diff options
| author | Keith Randall <khr@golang.org> | 2017-10-04 15:32:40 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2017-10-05 20:03:42 +0000 |
| commit | 97d17fcfd19594afc03ee68e9d74b9db14798c7f (patch) | |
| tree | 12b6b1b01424bbfc03947923c3f61cdce571601b /src | |
| parent | c85b12b5796c7efd4d8311253208b47449161361 (diff) | |
| download | go-97d17fcfd19594afc03ee68e9d74b9db14798c7f.tar.xz | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/mheap.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
