RFR: 8308869: C2: use profile data in subtype checks when profile has more than one class [v6]
Roland Westrelin
roland at openjdk.org
Wed Jun 21 14:36:21 UTC 2023
On Wed, 21 Jun 2023 07:02:35 GMT, Roland Westrelin <roland at openjdk.org> wrote:
> > Speaking of alternative ways to pass profile info around, you could just embed `ciCallProfile` in `SubTypeCheck`. Any particular reasons not to do so?
>
> It felt easier in terms of memory management. If we have some extra data embedded in the `SubTypeCheck` node, is it a pointer or the full data structure? If it is a pointer, do we clone the data on node clone? Try to reclaim memory on node destruction? Where should the data live so it's not destroyed while we need it but doesn't live longer that's required?
Let me see if I can simplify that part.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14375#issuecomment-1600953233
More information about the hotspot-compiler-dev
mailing list