Description[Tracing] Add lookup support to AllocationRegister
This adds a |Get| method to |AllocationRegister| which can be used to
change the context and size of an allocation after it has been inserted.
One possible use case of this is to post-annotate allocations with type
information, when this information is not available to the allocator,
but it is later in the program.
Because |AllocationRegister::Allocation| is now exposed mutably, its
|address| member has been made const. The hash of the address has to
match the bucket in which the |Allocation| is stored, so after insertion
the address must not be changed. This is enforced by making the member
const, at the cost of a few const violations in the implementation of
|AllocationRegister|.
BUG=574756
Committed: https://crrev.com/f57f47aa398e6ccd03b1888a176fe59e8a5cdea2
Cr-Commit-Position: refs/heads/master@{#368583}
Patch Set 1 #
Messages
Total messages: 10 (3 generated)
|