< prev index next >
src/hotspot/share/gc/shared/cardTableModRefBS.cpp
Print this page
rev 49197 : 8199220: Zero build broken after 8195103 and 8191102
Reviewed-by: dholmes, stuefe, eosterlund, glaubitz
@@ -114,10 +114,11 @@
//
// For any future collector, this code should be reexamined with
// that specific collector in mind, and the documentation above suitably
// extended and updated.
void CardTableModRefBS::on_slowpath_allocation_exit(JavaThread* thread, oop new_obj) {
+#if defined(COMPILER2) || INCLUDE_JVMCI
if (!ReduceInitialCardMarks) {
return;
}
// If a previous card-mark was deferred, flush it now.
flush_deferred_card_mark_barrier(thread);
@@ -135,10 +136,11 @@
} else {
// Do the card mark
invalidate(mr);
}
}
+#endif
}
void CardTableModRefBS::initialize_deferred_card_mark_barriers() {
// Used for ReduceInitialCardMarks (when COMPILER2 or JVMCI is used);
// otherwise remains unused.
< prev index next >