src/share/vm/gc_implementation/g1/g1RemSet.hpp

Print this page




 102   // Prepare for and cleanup after an oops_into_collection_set_do
 103   // call.  Must call each of these once before and after (in sequential
 104   // code) any threads call oops_into_collection_set_do.  (This offers an
 105   // opportunity to sequential setup and teardown of structures needed by a
 106   // parallel iteration over the CS's RS.)
 107   void prepare_for_oops_into_collection_set_do();
 108   void cleanup_after_oops_into_collection_set_do();
 109 
 110   void scanRS(OopsInHeapRegionClosure* oc,
 111               CodeBlobClosure* code_root_cl,
 112               uint worker_i);
 113 
 114   void updateRS(DirtyCardQueue* into_cset_dcq, uint worker_i);
 115 
 116   CardTableModRefBS* ct_bs() { return _ct_bs; }
 117   size_t cardsScanned() { return _total_cards_scanned; }
 118 
 119   // Record, if necessary, the fact that *p (where "p" is in region "from",
 120   // which is required to be non-NULL) has changed to a new non-NULL value.
 121   template <class T> void write_ref(HeapRegion* from, T* p);
 122   template <class T> void par_write_ref(HeapRegion* from, T* p, int tid);
 123 
 124   // Requires "region_bm" and "card_bm" to be bitmaps with 1 bit per region
 125   // or card, respectively, such that a region or card with a corresponding
 126   // 0 bit contains no part of any live object.  Eliminates any remembered
 127   // set entries that correspond to dead heap ranges.
 128   void scrub(BitMap* region_bm, BitMap* card_bm);
 129 
 130   // Like the above, but assumes is called in parallel: "worker_num" is the
 131   // parallel thread id of the current thread, and "claim_val" is the
 132   // value that should be used to claim heap regions.
 133   void scrub_par(BitMap* region_bm, BitMap* card_bm,
 134                  uint worker_num, int claim_val);
 135 
 136   // Refine the card corresponding to "card_ptr".
 137   // If check_for_refs_into_cset is true, a true result is returned
 138   // if the given card contains oops that have references into the
 139   // current collection set.
 140   virtual bool refine_card(jbyte* card_ptr,
 141                            uint worker_i,
 142                            bool check_for_refs_into_cset);




 102   // Prepare for and cleanup after an oops_into_collection_set_do
 103   // call.  Must call each of these once before and after (in sequential
 104   // code) any threads call oops_into_collection_set_do.  (This offers an
 105   // opportunity to sequential setup and teardown of structures needed by a
 106   // parallel iteration over the CS's RS.)
 107   void prepare_for_oops_into_collection_set_do();
 108   void cleanup_after_oops_into_collection_set_do();
 109 
 110   void scanRS(OopsInHeapRegionClosure* oc,
 111               CodeBlobClosure* code_root_cl,
 112               uint worker_i);
 113 
 114   void updateRS(DirtyCardQueue* into_cset_dcq, uint worker_i);
 115 
 116   CardTableModRefBS* ct_bs() { return _ct_bs; }
 117   size_t cardsScanned() { return _total_cards_scanned; }
 118 
 119   // Record, if necessary, the fact that *p (where "p" is in region "from",
 120   // which is required to be non-NULL) has changed to a new non-NULL value.
 121   template <class T> void write_ref(HeapRegion* from, T* p);
 122   template <class T> void par_write_ref(HeapRegion* from, T* p, uint tid);
 123 
 124   // Requires "region_bm" and "card_bm" to be bitmaps with 1 bit per region
 125   // or card, respectively, such that a region or card with a corresponding
 126   // 0 bit contains no part of any live object.  Eliminates any remembered
 127   // set entries that correspond to dead heap ranges.
 128   void scrub(BitMap* region_bm, BitMap* card_bm);
 129 
 130   // Like the above, but assumes is called in parallel: "worker_num" is the
 131   // parallel thread id of the current thread, and "claim_val" is the
 132   // value that should be used to claim heap regions.
 133   void scrub_par(BitMap* region_bm, BitMap* card_bm,
 134                  uint worker_num, int claim_val);
 135 
 136   // Refine the card corresponding to "card_ptr".
 137   // If check_for_refs_into_cset is true, a true result is returned
 138   // if the given card contains oops that have references into the
 139   // current collection set.
 140   virtual bool refine_card(jbyte* card_ptr,
 141                            uint worker_i,
 142                            bool check_for_refs_into_cset);