RFR: 8336103: Sharper checks for <init> and <clinit> initializers [v2]
Aleksey Shipilev
shade at openjdk.org
Tue Jul 16 10:21:51 UTC 2024
On Tue, 16 Jul 2024 04:55:52 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Yeah, this is not really a cleanup (behaviors stay the same) change. For this particular hunk, keeping the old behavior seems to be unnecessary work. Note that we are also changing the behavior in C2: both in `do_exits` we no longer emit the barriers for `static final` stores in `clinits`, plus EA does not care about `clinits` anymore as well. Those are also behavioral changes.
>>
>> If you prefer, I can turn this PR into a behaviorally similar cleanup, and do the behavior changes separately.
>
> I certainly would not want those C2 changes to hidden behind what looks like a cleanup on the surface, so please do separate things out.
>
> BTW Mandy is away for a while so we can't get her input on the original intent here.
Fine by me. I am splitting out C2 parts here:
https://bugs.openjdk.org/browse/JDK-8336465
https://bugs.openjdk.org/browse/JDK-8336466
I'll probably fork `get_flags` change as a separate bug as well.
This PR would then be only the final non-behavioral cleanups that would eliminate the remnant uses of `is_initializer`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20120#discussion_r1679144326
More information about the graal-dev
mailing list