8300124: Remove unnecessary assert in GenCollectedHeap::initialize

Reviewed-by: stefank, tschatzl
This commit is contained in:
Albert Mingkun Yang 2023-01-16 14:25:35 +00:00
parent 289aed465e
commit 319de6a6d3

@ -106,13 +106,6 @@ GenCollectedHeap::GenCollectedHeap(Generation::Name young,
}
jint GenCollectedHeap::initialize() {
// While there are no constraints in the GC code that HeapWordSize
// be any particular value, there are multiple other areas in the
// system which believe this to be true (e.g. oop->object_size in some
// cases incorrectly returns the size in wordSize units rather than
// HeapWordSize).
guarantee(HeapWordSize == wordSize, "HeapWordSize must equal wordSize");
// Allocate space for the heap.
ReservedHeapSpace heap_rs = allocate(HeapAlignment);