changeset 36580:79b269100c92

8151101: Improve UseParallelGC parallelization of object array processing Reviewed-by: tschatzl, shade Contributed-by: richard.reingruber@sap.com
author jmasa
date Thu, 03 Mar 2016 11:36:25 -0800
parents c3090eae87e6
children ad9ee98daf2c 23951641d389
files hotspot/src/share/vm/gc/parallel/psCompactionManager.inline.hpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/gc/parallel/psCompactionManager.inline.hpp	Mon Mar 07 15:07:58 2016 +0100
+++ b/hotspot/src/share/vm/gc/parallel/psCompactionManager.inline.hpp	Thu Mar 03 11:36:25 2016 -0800
@@ -125,14 +125,14 @@
   T* const beg = base + beg_index;
   T* const end = base + end_index;
 
+  if (end_index < len) {
+    cm->push_objarray(obj, end_index); // Push the continuation.
+  }
+
   // Push the non-NULL elements of the next stride on the marking stack.
   for (T* e = beg; e < end; e++) {
     cm->mark_and_push<T>(e);
   }
-
-  if (end_index < len) {
-    cm->push_objarray(obj, end_index); // Push the continuation.
-  }
 }
 
 inline void ParCompactionManager::follow_contents(objArrayOop obj, int index) {