RFR: 8295012: Arena should not derive from CHeapObj<mtNone>
Stefan Karlsson
stefank at openjdk.org
Mon Oct 10 08:55:12 UTC 2022
On Sun, 9 Oct 2022 00:21:18 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Please review this change to the `Arena` class. Rather than deriving from
> `CHeapObj<mtNone>` (which has the effect of preventing C-heap allocation for an
> arena by asserting if such is attempted), instead have no allocation base
> class so that `new Arena(...)` will fail to compile.
>
> Testing: mach5 tier1
What's the reason for keeping the new/delete operators in Arena, instead of inheriting from the newly introduced CHeapObjBase class?
-------------
PR: https://git.openjdk.org/jdk/pull/10621
More information about the hotspot-runtime-dev
mailing list