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

Print this page
rev 4802 : imported patch optimize-nmethod-scanning
rev 4803 : imported patch thomas-comments


  77   // is finished and the initial hash table is no longer being
  78   // scanned.
  79   void cleanupHRRS();
  80 
  81   G1RemSet(G1CollectedHeap* g1, CardTableModRefBS* ct_bs);
  82   ~G1RemSet();
  83 
  84   // Invoke "blk->do_oop" on all pointers into the collection set
  85   // from objects in regions outside the collection set (having
  86   // invoked "blk->set_region" to set the "from" region correctly
  87   // beforehand.)
  88   //
  89   // Invoke code_root_cl->do_code_blob on the unmarked nmethods
  90   // on the strong code roots list for each region in the
  91   // collection set.
  92   //
  93   // The "worker_i" param is for the parallel case where the id
  94   // of the worker thread calling this function can be helpful in
  95   // partitioning the work to be done. It should be the same as
  96   // the "i" passed to the calling thread's work(i) function.
  97   // In the sequential case this param will be ingored.
  98   void oops_into_collection_set_do(OopsInHeapRegionClosure* blk,
  99                                    CodeBlobToOopClosure* code_root_cl,
 100                                    int worker_i);
 101 
 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               CodeBlobToOopClosure* code_root_cl,
 112               int worker_i);
 113 
 114   void updateRS(DirtyCardQueue* into_cset_dcq, int worker_i);
 115 
 116   CardTableModRefBS* ct_bs() { return _ct_bs; }
 117   size_t cardsScanned() { return _total_cards_scanned; }




  77   // is finished and the initial hash table is no longer being
  78   // scanned.
  79   void cleanupHRRS();
  80 
  81   G1RemSet(G1CollectedHeap* g1, CardTableModRefBS* ct_bs);
  82   ~G1RemSet();
  83 
  84   // Invoke "blk->do_oop" on all pointers into the collection set
  85   // from objects in regions outside the collection set (having
  86   // invoked "blk->set_region" to set the "from" region correctly
  87   // beforehand.)
  88   //
  89   // Invoke code_root_cl->do_code_blob on the unmarked nmethods
  90   // on the strong code roots list for each region in the
  91   // collection set.
  92   //
  93   // The "worker_i" param is for the parallel case where the id
  94   // of the worker thread calling this function can be helpful in
  95   // partitioning the work to be done. It should be the same as
  96   // the "i" passed to the calling thread's work(i) function.
  97   // In the sequential case this param will be ignored.
  98   void oops_into_collection_set_do(OopsInHeapRegionClosure* blk,
  99                                    CodeBlobToOopClosure* code_root_cl,
 100                                    int worker_i);
 101 
 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               CodeBlobToOopClosure* code_root_cl,
 112               int worker_i);
 113 
 114   void updateRS(DirtyCardQueue* into_cset_dcq, int worker_i);
 115 
 116   CardTableModRefBS* ct_bs() { return _ct_bs; }
 117   size_t cardsScanned() { return _total_cards_scanned; }