8159237: PreservedMarks verification code fails
authorstefank
Fri, 10 Jun 2016 14:06:36 +0200
changeset 39230 b991240ffb0d
parent 39229 8bfc00dd44b6
child 39231 e6aa09b4f1b9
child 39267 36e44e05ecf8
8159237: PreservedMarks verification code fails Reviewed-by: lmesnik, jwilhelm
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 {