Skip to content

Commit 59e495e

Browse files
committedJul 21, 2022
8290704: x86: TemplateTable::_new should not call eden_allocate() without contiguous allocs enabled
Reviewed-by: kvn, thartmann, coleenp
1 parent 799a2c8 commit 59e495e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/cpu/x86/templateTable_x86.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3981,7 +3981,7 @@ void TemplateTable::_new() {
39813981
// initialize both the header and fields
39823982
__ jmp(initialize_object);
39833983
}
3984-
} else {
3984+
} else if (allow_shared_alloc) {
39853985
// Allocation in the shared Eden, if allowed.
39863986
//
39873987
// rdx: instance size in bytes

0 commit comments

Comments
 (0)