Skip to content

runtime: Reenable "pointer-to-heap-doesn't-point-to-object" check. #9880

@randall77

Description

@randall77

We used to have a check for pointers that point into the heap but don't point to an object. This check is useful for debugging live variable info, global ptr maps, etc. It is currently turned off. We should re-enable it for 1.5. It is currently broken at least because of holes in 32-bit heaps #9872 . There are probably other reasons as well.

The check is currently disabled in runtime/mbitmap.go:heapBitsForObject, line 181.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions