< prev index next >

src/share/vm/gc/g1/g1RootProcessor.hpp

Print this page
rev 11874 : 8114823: G1 doesn't honor request to disable class unloading
Reviewed-by:


  64     G1RP_PS_ClassLoaderDataGraph_oops_do,
  65     G1RP_PS_jvmti_oops_do,
  66     G1RP_PS_CodeCache_oops_do,
  67     G1RP_PS_filter_satb_buffers,
  68     G1RP_PS_refProcessor_oops_do,
  69     // Leave this one last.
  70     G1RP_PS_NumElements
  71   };
  72 
  73   void worker_has_discovered_all_strong_classes();
  74   void wait_until_all_strong_classes_discovered();
  75 
  76   void process_java_roots(G1RootClosures* closures,
  77                           G1GCPhaseTimes* phase_times,
  78                           uint worker_i);
  79 
  80   void process_vm_roots(G1RootClosures* closures,
  81                         G1GCPhaseTimes* phase_times,
  82                         uint worker_i);
  83 








  84 public:
  85   G1RootProcessor(G1CollectedHeap* g1h, uint n_workers);
  86 
  87   // Apply closures to the strongly and weakly reachable roots in the system
  88   // in a single pass.
  89   // Record and report timing measurements for sub phases using the worker_i
  90   void evacuate_roots(G1EvacuationRootClosures* closures, uint worker_i);
  91 
  92   // Apply oops, clds and blobs to all strongly reachable roots in the system
  93   void process_strong_roots(OopClosure* oops,
  94                             CLDClosure* clds,
  95                             CodeBlobClosure* blobs);
  96 
  97   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system
  98   void process_all_roots(OopClosure* oops,
  99                          CLDClosure* clds,
 100                          CodeBlobClosure* blobs);







 101 
 102   // Number of worker threads used by the root processor.
 103   uint n_workers() const;
 104 };
 105 
 106 #endif // SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP


  64     G1RP_PS_ClassLoaderDataGraph_oops_do,
  65     G1RP_PS_jvmti_oops_do,
  66     G1RP_PS_CodeCache_oops_do,
  67     G1RP_PS_filter_satb_buffers,
  68     G1RP_PS_refProcessor_oops_do,
  69     // Leave this one last.
  70     G1RP_PS_NumElements
  71   };
  72 
  73   void worker_has_discovered_all_strong_classes();
  74   void wait_until_all_strong_classes_discovered();
  75 
  76   void process_java_roots(G1RootClosures* closures,
  77                           G1GCPhaseTimes* phase_times,
  78                           uint worker_i);
  79 
  80   void process_vm_roots(G1RootClosures* closures,
  81                         G1GCPhaseTimes* phase_times,
  82                         uint worker_i);
  83 
  84   void process_string_table_roots(G1RootClosures* closures,
  85                                   G1GCPhaseTimes* phase_times,
  86                                   uint worker_i);
  87 
  88   void process_code_cache_roots(CodeBlobClosure* code_closure,
  89                                 G1GCPhaseTimes* phase_times,
  90                                 uint worker_i);
  91 
  92 public:
  93   G1RootProcessor(G1CollectedHeap* g1h, uint n_workers);
  94 
  95   // Apply closures to the strongly and weakly reachable roots in the system
  96   // in a single pass.
  97   // Record and report timing measurements for sub phases using the worker_i
  98   void evacuate_roots(G1EvacuationRootClosures* closures, uint worker_i);
  99 
 100   // Apply oops, clds and blobs to all strongly reachable roots in the system
 101   void process_strong_roots(OopClosure* oops,
 102                             CLDClosure* clds,
 103                             CodeBlobClosure* blobs);
 104 
 105   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system
 106   void process_all_roots(OopClosure* oops,
 107                          CLDClosure* clds,
 108                          CodeBlobClosure* blobs);
 109 
 110   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system,
 111   // the only thing different from process_all_roots is that we skip the string table
 112   // to avoid keeping every string live when doing class unloading.
 113   void process_all_roots_no_string_table(OopClosure* oops,
 114                                          CLDClosure* clds,
 115                                          CodeBlobClosure* blobs);
 116 
 117   // Number of worker threads used by the root processor.
 118   uint n_workers() const;
 119 };
 120 
 121 #endif // SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP
< prev index next >