8381934: Wrong type passed to FREE_C_HEAP_ARRAY deallocating G1CardSetMemoryManager

Reviewed-by: iwalulya
This commit is contained in:
Thomas Schatzl 2026-04-14 08:08:18 +00:00
parent 6548fb80ac
commit c4199831b9

View File

@ -90,7 +90,7 @@ G1CardSetMemoryManager::~G1CardSetMemoryManager() {
for (uint i = 0; i < num_mem_object_types(); i++) {
_allocators[i].~G1CardSetAllocator();
}
FREE_C_HEAP_ARRAY(G1CardSetAllocator<G1CardSetContainer>, _allocators);
FREE_C_HEAP_ARRAY(G1CardSetAllocator, _allocators);
}
void G1CardSetMemoryManager::free(uint type, void* value) {