On Mon, 25 Nov 2024 17:59:05 GMT, William Kemper <wkem...@openjdk.org> wrote:

>> We should really either predicate it on generational mode (we already poll 
>> it a few lines below) and check for `MARKING` specifically, or assert it.
>
> I'll make some adjustments here. Note that `OLD_MARKING` also implies (and 
> sets) `MARKING`, and - unlike `YOUNG_MARKING` - is not exclusive with 
> `EVACUTION` and `UPDATEREFS`. Perhaps an explanatory comment is the best 
> option here?

Thing is, the description for `MARKING` says "marking is in progress" (for any 
mode), while `YOUNG_MARKING` says that it is only true for yougn marking. So 
for a casual reader, checking for `YOUNG_MARKING` in non-generational code 
looks weird. I don't know the best way out of this, really. I think this is the 
only place when we check `YOUNG_MARKING` for non-gen mode? If so, we should 
probably fix it right here?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21273#discussion_r1857151960

Reply via email to