< prev index next >

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

Print this page
rev 49681 : imported patch 6672778-refactoring
rev 49682 : [mq]: 6672778-stefanj-review
   1 /*
   2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  81 
  82   void process_java_roots(G1RootClosures* closures,
  83                           G1GCPhaseTimes* phase_times,
  84                           uint worker_i);
  85 
  86   void process_vm_roots(G1RootClosures* closures,
  87                         G1GCPhaseTimes* phase_times,
  88                         uint worker_i);
  89 
  90   void process_string_table_roots(G1RootClosures* closures,
  91                                   G1GCPhaseTimes* phase_times,
  92                                   uint worker_i);
  93 
  94   void process_code_cache_roots(CodeBlobClosure* code_closure,
  95                                 G1GCPhaseTimes* phase_times,
  96                                 uint worker_i);
  97 
  98 public:
  99   G1RootProcessor(G1CollectedHeap* g1h, uint n_workers);
 100 
 101   // Apply closures to the strongly and weakly reachable roots in the system
 102   // in a single pass.
 103   // Record and report timing measurements for sub phases using the worker_i
 104   void evacuate_roots(G1ParScanThreadState* pss, G1EvacuationRootClosures* closures, uint worker_i);
 105 
 106   // Apply oops, clds and blobs to all strongly reachable roots in the system
 107   void process_strong_roots(OopClosure* oops,
 108                             CLDClosure* clds,
 109                             CodeBlobClosure* blobs);
 110 
 111   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system
 112   void process_all_roots(OopClosure* oops,
 113                          CLDClosure* clds,
 114                          CodeBlobClosure* blobs);
 115 
 116   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system,
 117   // the only thing different from process_all_roots is that we skip the string table
 118   // to avoid keeping every string live when doing class unloading.
 119   void process_all_roots_no_string_table(OopClosure* oops,
 120                                          CLDClosure* clds,
 121                                          CodeBlobClosure* blobs);
 122 
 123   // Apply closure to weak roots in the system. Used during the adjust phase
 124   // for the Full GC.
   1 /*
   2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  81 
  82   void process_java_roots(G1RootClosures* closures,
  83                           G1GCPhaseTimes* phase_times,
  84                           uint worker_i);
  85 
  86   void process_vm_roots(G1RootClosures* closures,
  87                         G1GCPhaseTimes* phase_times,
  88                         uint worker_i);
  89 
  90   void process_string_table_roots(G1RootClosures* closures,
  91                                   G1GCPhaseTimes* phase_times,
  92                                   uint worker_i);
  93 
  94   void process_code_cache_roots(CodeBlobClosure* code_closure,
  95                                 G1GCPhaseTimes* phase_times,
  96                                 uint worker_i);
  97 
  98 public:
  99   G1RootProcessor(G1CollectedHeap* g1h, uint n_workers);
 100 
 101   // Apply correct closures from pss to the strongly and weakly reachable roots in the system
 102   // in a single pass.
 103   // Record and report timing measurements for sub phases using the worker_i
 104   void evacuate_roots(G1ParScanThreadState* pss, uint worker_id);
 105 
 106   // Apply oops, clds and blobs to all strongly reachable roots in the system
 107   void process_strong_roots(OopClosure* oops,
 108                             CLDClosure* clds,
 109                             CodeBlobClosure* blobs);
 110 
 111   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system
 112   void process_all_roots(OopClosure* oops,
 113                          CLDClosure* clds,
 114                          CodeBlobClosure* blobs);
 115 
 116   // Apply oops, clds and blobs to strongly and weakly reachable roots in the system,
 117   // the only thing different from process_all_roots is that we skip the string table
 118   // to avoid keeping every string live when doing class unloading.
 119   void process_all_roots_no_string_table(OopClosure* oops,
 120                                          CLDClosure* clds,
 121                                          CodeBlobClosure* blobs);
 122 
 123   // Apply closure to weak roots in the system. Used during the adjust phase
 124   // for the Full GC.
< prev index next >