--- a/hotspot/src/share/vm/gc/shared/cardTableModRefBS.cpp Fri Apr 01 07:08:40 2016 +0200
+++ b/hotspot/src/share/vm/gc/shared/cardTableModRefBS.cpp Fri Apr 01 07:08:55 2016 +0200
@@ -500,16 +500,14 @@
bool failed = (val_equals) ? (curr_val != val) : (curr_val == val);
if (failed) {
if (!failures) {
- tty->cr();
- tty->print_cr("== CT verification failed: [" INTPTR_FORMAT "," INTPTR_FORMAT "]", p2i(start), p2i(end));
- tty->print_cr("== %sexpecting value: %d",
- (val_equals) ? "" : "not ", val);
+ log_error(gc, verify)("== CT verification failed: [" INTPTR_FORMAT "," INTPTR_FORMAT "]", p2i(start), p2i(end));
+ log_error(gc, verify)("== %sexpecting value: %d", (val_equals) ? "" : "not ", val);
failures = true;
}
- tty->print_cr("== card " PTR_FORMAT " [" PTR_FORMAT "," PTR_FORMAT "], "
- "val: %d", p2i(curr), p2i(addr_for(curr)),
- p2i((HeapWord*) (((size_t) addr_for(curr)) + card_size)),
- (int) curr_val);
+ log_error(gc, verify)("== card " PTR_FORMAT " [" PTR_FORMAT "," PTR_FORMAT "], val: %d",
+ p2i(curr), p2i(addr_for(curr)),
+ p2i((HeapWord*) (((size_t) addr_for(curr)) + card_size)),
+ (int) curr_val);
}
}
guarantee(!failures, "there should not have been any failures");