mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8134992: vm/gc/compact/Compact_InternedStrings_Strings failed due to a malloc() failure
Reviewed-by: mgerdin, brutisso
This commit is contained in:
parent
ba20c3bc65
commit
8961912c74
1 changed files with 3 additions and 1 deletions
|
@ -405,7 +405,9 @@ size_t CollectedHeap::max_tlab_size() const {
|
|||
oop CollectedHeap::new_store_pre_barrier(JavaThread* thread, oop new_obj) {
|
||||
// If a previous card-mark was deferred, flush it now.
|
||||
flush_deferred_store_barrier(thread);
|
||||
if (can_elide_initializing_store_barrier(new_obj)) {
|
||||
if (can_elide_initializing_store_barrier(new_obj) ||
|
||||
new_obj->is_typeArray()) {
|
||||
// Arrays of non-references don't need a pre-barrier.
|
||||
// The deferred_card_mark region should be empty
|
||||
// following the flush above.
|
||||
assert(thread->deferred_card_mark().is_empty(), "Error");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue