mirror of
https://github.com/golang/go
synced 2024-11-19 13:14:42 -07: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:
parent
c85b12b579
commit
97d17fcfd1
@ -160,6 +160,8 @@ type mheap struct {
|
|||||||
specialfinalizeralloc fixalloc // allocator for specialfinalizer*
|
specialfinalizeralloc fixalloc // allocator for specialfinalizer*
|
||||||
specialprofilealloc fixalloc // allocator for specialprofile*
|
specialprofilealloc fixalloc // allocator for specialprofile*
|
||||||
speciallock mutex // lock for special record allocators.
|
speciallock mutex // lock for special record allocators.
|
||||||
|
|
||||||
|
unused *specialfinalizer // never set, just here to force the specialfinalizer type into DWARF
|
||||||
}
|
}
|
||||||
|
|
||||||
var mheap_ mheap
|
var mheap_ mheap
|
||||||
|
Loading…
Reference in New Issue
Block a user