8290704: x86: TemplateTable::_new should not call eden_allocate() without contiguous allocs enabled

Reviewed-by: kvn, thartmann, coleenp
This commit is contained in:
Aleksey Shipilev 2022-07-21 13:23:10 +00:00
parent 799a2c844d
commit 59e495e4d3

View File

@ -3981,7 +3981,7 @@ void TemplateTable::_new() {
// initialize both the header and fields
__ jmp(initialize_object);
}
} else {
} else if (allow_shared_alloc) {
// Allocation in the shared Eden, if allowed.
//
// rdx: instance size in bytes