RFR: 8299125: UnifiedOopRef in JFR leakprofiler should treat thread local oops correctly [v2]
Markus Grönlund
mgronlun at openjdk.org
Wed Jan 4 13:29:52 UTC 2023
On Tue, 3 Jan 2023 16:19:01 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> ObjectAlignmentInBytes is 4 by default on 32 bit VMs.
>
> @fisk Why are the shifts needed on 64-bits?
Maybe the shift is needed in order to handle unaligned oops, as for code blob oops? The existing root processing logic has up to now skipped code blob oops, mainly because they were hard to encode. The rationale was that they are not roots in and of themselves. Now, we have seen several instances where chains are not found on iterations, so maybe the assumption on skipping code blob oops is wrong. With this encoding scheme in place, it would be possible to pass a closure for processing the code blob oops as well.
-------------
PR: https://git.openjdk.org/jdk/pull/11741
More information about the hotspot-dev
mailing list