# HG changeset patch # User Richard Reingruber # Date 1457012027 -3600 # Thu Mar 03 14:33:47 2016 +0100 # Node ID b0350faa8f84f646eb42db0c51f75e892dae161e # Parent 5c4f8192021ee525e65d640bbed3a05753aa2934 8151101: Improve UseParallelGC parallelization of object array processing Contributed-by: richard.reingruber@sap.com diff --git a/src/share/vm/gc/parallel/psCompactionManager.inline.hpp b/src/share/vm/gc/parallel/psCompactionManager.inline.hpp --- a/src/share/vm/gc/parallel/psCompactionManager.inline.hpp +++ b/src/share/vm/gc/parallel/psCompactionManager.inline.hpp @@ -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(e); } - - if (end_index < len) { - cm->push_objarray(obj, end_index); // Push the continuation. - } } inline void ParCompactionManager::follow_contents(objArrayOop obj, int index) {