RFR: 8333658: NMT: Use an allocator with 4-byte pointers to save memory in NativeCallStackStorage [v29]
Johan Sjölen
jsjolen at openjdk.org
Tue Jun 25 09:50:14 UTC 2024
On Mon, 24 Jun 2024 14:01:09 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>really test the AWFL (new acronym, yay).
Can't wait for templatized indices so I can write
```c++
using AWFUL = ArrayWithFreeListAllocator<int, uint8_t>;
>Interesting to see would be that it works, that alignment is correct, that nothing breaks across resizes (indexes stay stable, etc.).
>I wont insist of it, just thinking that the current test complexity is somewhat wasted.
I think those tests make sense if we replace the `GrowableArray`as the backing memory area with something else, otherwise that's just testing the GA.
OK, how about we scrap the tests for when moving this to utilities and having the index being a part of the template? I've got that in the pipeline already, so it's not going to take too long I hope.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18979#discussion_r1652386337
More information about the hotspot-dev
mailing list