Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/objArrayOop.hpp @ 4097:dc467e8b2c5e
7112743: G1: Reduce overhead of marking closure during evacuation pauses
Summary: Parallelize the serial code that was used to mark objects reachable from survivor objects in the collection set. Some minor improvments in the timers used to track the freeing of the collection set along with some tweaks to PrintGCDetails.
Reviewed-by: tonyp, brutisso
author | johnc |
---|---|
date | Thu, 17 Nov 2011 12:40:15 -0800 |
parents | f95d63e2154a |
children | d8ce2825b193 |
comparison
equal
deleted
inserted
replaced
4096:00dd86e542eb | 4097:dc467e8b2c5e |
---|---|
32 | 32 |
33 class objArrayOopDesc : public arrayOopDesc { | 33 class objArrayOopDesc : public arrayOopDesc { |
34 friend class objArrayKlass; | 34 friend class objArrayKlass; |
35 friend class Runtime1; | 35 friend class Runtime1; |
36 friend class psPromotionManager; | 36 friend class psPromotionManager; |
37 friend class CSMarkOopClosure; | 37 friend class CSetMarkOopClosure; |
38 friend class G1ParScanPartialArrayClosure; | 38 friend class G1ParScanPartialArrayClosure; |
39 | 39 |
40 template <class T> T* obj_at_addr(int index) const { | 40 template <class T> T* obj_at_addr(int index) const { |
41 assert(is_within_bounds(index), "index out of bounds"); | 41 assert(is_within_bounds(index), "index out of bounds"); |
42 return &((T*)base())[index]; | 42 return &((T*)base())[index]; |