Integrated: 8295012: Arena should not derive from CHeapObj<mtNone>

Kim Barrett kbarrett at openjdk.org
Wed Oct 12 02:00:54 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

This pull request has now been integrated.

Changeset: 5ad126f4
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5ad126f44662d81d2d065b215ed967c0b983f9c9
Stats:     33 lines in 2 files changed: 0 ins; 32 del; 1 mod

8295012: Arena should not derive from CHeapObj<mtNone>

Reviewed-by: stefank, dholmes

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

PR: https://git.openjdk.org/jdk/pull/10621


More information about the hotspot-runtime-dev mailing list