hotspot/src/share/vm/gc/g1/g1ParScanThreadState.inline.hpp
changeset 33105 294e48b4f704
parent 32187 0891f3fa84fc
child 33224 bc5da96c1f0e
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
    50     oopDesc::encode_store_heap_oop(p, forwardee);
    50     oopDesc::encode_store_heap_oop(p, forwardee);
    51   } else if (in_cset_state.is_humongous()) {
    51   } else if (in_cset_state.is_humongous()) {
    52     _g1h->set_humongous_is_live(obj);
    52     _g1h->set_humongous_is_live(obj);
    53   } else {
    53   } else {
    54     assert(!in_cset_state.is_in_cset_or_humongous(),
    54     assert(!in_cset_state.is_in_cset_or_humongous(),
    55            err_msg("In_cset_state must be NotInCSet here, but is " CSETSTATE_FORMAT, in_cset_state.value()));
    55            "In_cset_state must be NotInCSet here, but is " CSETSTATE_FORMAT, in_cset_state.value());
    56   }
    56   }
    57 
    57 
    58   assert(obj != NULL, "Must be");
    58   assert(obj != NULL, "Must be");
    59   update_rs(from, p, _worker_id);
    59   update_rs(from, p, _worker_id);
    60 }
    60 }
    80   objArrayOop to_obj_array   = objArrayOop(to_obj);
    80   objArrayOop to_obj_array   = objArrayOop(to_obj);
    81   // We keep track of the next start index in the length field of the
    81   // We keep track of the next start index in the length field of the
    82   // to-space object.
    82   // to-space object.
    83   int next_index             = to_obj_array->length();
    83   int next_index             = to_obj_array->length();
    84   assert(0 <= next_index && next_index < length,
    84   assert(0 <= next_index && next_index < length,
    85          err_msg("invariant, next index: %d, length: %d", next_index, length));
    85          "invariant, next index: %d, length: %d", next_index, length);
    86 
    86 
    87   int start                  = next_index;
    87   int start                  = next_index;
    88   int end                    = length;
    88   int end                    = length;
    89   int remainder              = end - start;
    89   int remainder              = end - start;
    90   // We'll try not to push a range that's smaller than ParGCArrayScanChunk.
    90   // We'll try not to push a range that's smaller than ParGCArrayScanChunk.