Re: RFR: 8339710: Avoid initializing AccessFlag related classes in write-only cases [v2]

2024-09-08 Thread Claes Redestad
On Sun, 8 Sep 2024 16:48:36 GMT, Claes Redestad wrote: >> This PR reduces number of classes loaded on a minimal lambda bootstrapping >> test by 4 by avoiding the need to pull in some AccessFlag classes. > > Claes Redestad has updated the pull request incrementally with one additional > commit s

Re: RFR: 8339710: Avoid initializing AccessFlag related classes in write-only cases [v2]

2024-09-08 Thread Chen Liang
On Sun, 8 Sep 2024 16:48:36 GMT, Claes Redestad wrote: >> This PR reduces number of classes loaded on a minimal lambda bootstrapping >> test by 4 by avoiding the need to pull in some AccessFlag classes. > > Claes Redestad has updated the pull request incrementally with one additional > commit s

Re: RFR: 8339710: Avoid initializing AccessFlag related classes in write-only cases

2024-09-08 Thread Claes Redestad
On Sun, 8 Sep 2024 13:17:24 GMT, Claes Redestad wrote: > This PR reduces number of classes loaded on a minimal lambda bootstrapping > test by 4 by avoiding the need to pull in some AccessFlag classes. Added `DirectMethodBuilder::withFlags` too, for consistency. - PR Comment: https

Re: RFR: 8339710: Avoid initializing AccessFlag related classes in write-only cases [v2]

2024-09-08 Thread Claes Redestad
> This PR reduces number of classes loaded on a minimal lambda bootstrapping > test by 4 by avoiding the need to pull in some AccessFlag classes. Claes Redestad has updated the pull request incrementally with one additional commit since the last revision: Add DMB.withFlags for consistency --

Re: RFR: 8339710: Avoid initializing AccessFlag related classes in write-only cases

2024-09-08 Thread Chen Liang
On Sun, 8 Sep 2024 13:17:24 GMT, Claes Redestad wrote: > This PR reduces number of classes loaded on a minimal lambda bootstrapping > test by 4 by avoiding the need to pull in some AccessFlag classes. Do you think we need a parallel declaration in `DirectMethodBuilder`? Though that one won't b

RFR: 8339710: Avoid initializing AccessFlag related classes in write-only cases

2024-09-08 Thread Claes Redestad
This PR reduces number of classes loaded on a minimal lambda bootstrapping test by 4 by avoiding the need to pull in some AccessFlag classes. - Commit messages: - Add withFlag(int) to DFB for consistency - Avoid loading AccessFlag by providing overrides Changes: https://git.openjd