RFR: 8366457: Add ResourceArea and Arena allocators for the RBTree
Casper Norrbin
cnorrbin at openjdk.org
Tue Jan 13 13:01:53 UTC 2026
On Mon, 12 Jan 2026 14:34:23 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> src/hotspot/share/utilities/rbTree.hpp line 35:
>>
>>> 33: #include "nmt/memTag.hpp"
>>> 34: #include "runtime/os.hpp"
>>> 35: #include "runtime/thread.hpp"
>>
>> Do we need to include `allocation.hpp` and `thread.hpp`? I can't find what's using these and it builds fine for me with those includes removed.
>
> We need `allocation.hpp` as that provides AllocFailStrategy, etc. `thread.hpp` isn't needed, that was unfortunate left overs from my first draft.
Ah ok! Interesting that it worked before as `RBTreeCHeap` also uses `AllocFailStrategy`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29082#discussion_r2686309353
More information about the hotspot-dev
mailing list