RFR: 8340103: Add internal set_flag function to VMATree [v18]
Johan Sjölen
jsjolen at openjdk.org
Thu Nov 7 10:02:08 UTC 2024
On Thu, 7 Nov 2024 09:58:45 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> test/hotspot/gtest/nmt/test_vmatree.cpp line 437:
>>
>>> 435: tree.set_tag(0, 75, mtGC);
>>> 436: expect_equivalent_form(expected, tree);
>>> 437: }
>>
>> I think this shows an error I mentioned before, which should be fixed:
>>
>> Released regions should only have mtNone as tag and no associated stack. The reason is that we don't want released sections to splinter into different parts, since that makes no sense. Released sections should always coalesce and that is easiest reached by making its properties uniformly "mtNone, no stack"
>
> You might be right about that. I thought that we simply ignored state and stack of released regions. Let me see what's going on.
Ah, actually that is precisely what we see as an assert later on. `set_tag` must support address holes in some sense, otherwise we'll end up in a bad state.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20994#discussion_r1832393443
More information about the hotspot-runtime-dev
mailing list