RFR: 8331721: Introduce CollectedHeap helper methods for any GC in progress
Zhengyu Gu
zgu at openjdk.org
Tue May 7 20:32:52 UTC 2024
On Tue, 7 May 2024 18:26:07 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> > Can you explain the purpose of this change? I assume you want to enable `oopMapCache` only when any gc is active, am I correct?
>
> Yes, I want to replace the OopMapCache gating check with `is_any_gc_active()`. But I think tracking concurrent GCs in progress might be useful for other cases, _and_ `OopMapCache` change would require more touchups, so I don't want to cobble these together.
But is it really necessary? IMO, some stack walk code can also benefit from `oopMapCache`, e.g. https://code.devsnc.com/dev/glide-jdk17/blob/995d513f19fadf233b64f1caee386daa5700148d/src/hotspot/share/prims/stackwalk.cpp#L298
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19122#issuecomment-2099255420
More information about the hotspot-gc-dev
mailing list