# HG changeset patch # User stefank # Date 1465560396 -7200 # Node ID b991240ffb0dc39644e1ba7822712757e2af0800 # Parent 8bfc00dd44b66a6de0bf35e736c3db5810103c98 8159237: PreservedMarks verification code fails Reviewed-by: lmesnik, jwilhelm diff -r 8bfc00dd44b6 -r b991240ffb0d hotspot/src/share/vm/gc/shared/preservedMarks.cpp --- a/hotspot/src/share/vm/gc/shared/preservedMarks.cpp Wed Jun 08 16:07:49 2016 +0200 +++ b/hotspot/src/share/vm/gc/shared/preservedMarks.cpp Fri Jun 10 14:06:36 2016 +0200 @@ -131,10 +131,10 @@ #endif // ndef PRODUCT void SharedRestorePreservedMarksTaskExecutor::restore(PreservedMarksSet* preserved_marks_set, - volatile size_t* total_size_addr) { + volatile size_t* total_size_addr) { if (_workers == NULL) { for (uint i = 0; i < preserved_marks_set->num(); i += 1) { - total_size_addr += preserved_marks_set->get(i)->size(); + *total_size_addr += preserved_marks_set->get(i)->size(); preserved_marks_set->get(i)->restore(); } } else {