RFR: 8326962: C2 SuperWord: cache VPointer [v4]

Emanuel Peter epeter at openjdk.org
Wed Apr 3 06:53:10 UTC 2024


On Tue, 2 Apr 2024 20:08:34 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> One question: will VLoopAnalyzer default destructor clean up all memory used?

@vnkozlov there is no need, since it is all allocated over the `Arena` in `VLoopAnalyzer`:


// Arena for all submodules
Arena                _arena;


It is that arena that I pass into all submodules, such as `VLoopVPointer`. `VLoopAnalyzer` is stack allocated, so once the destructor removes its `_arena`, all submodules are also automatically deallocated.

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

PR Comment: https://git.openjdk.org/jdk/pull/18577#issuecomment-2033687519


More information about the hotspot-compiler-dev mailing list