< prev index next >

src/hotspot/share/gc/g1/g1CollectedHeap.inline.hpp

G1BarrierSet_merge

7  *                                                                                                                                   
8  * This code is distributed in the hope that it will be useful, but WITHOUT                                                          
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or                                                             
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License                                                             
11  * version 2 for more details (a copy is included in the LICENSE file that                                                           
12  * accompanied this code).                                                                                                           
13  *                                                                                                                                   
14  * You should have received a copy of the GNU General Public License version                                                         
15  * 2 along with this work; if not, write to the Free Software Foundation,                                                            
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.                                                                     
17  *                                                                                                                                   
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA                                                           
19  * or visit www.oracle.com if you need additional information or have any                                                            
20  * questions.                                                                                                                        
21  *                                                                                                                                   
22  */                                                                                                                                  
23 
24 #ifndef SHARE_VM_GC_G1_G1COLLECTEDHEAP_INLINE_HPP                                                                                    
25 #define SHARE_VM_GC_G1_G1COLLECTEDHEAP_INLINE_HPP                                                                                    
26 
                                                                                                                                     
27 #include "gc/g1/g1CollectedHeap.hpp"                                                                                                 
28 #include "gc/g1/g1CollectorState.hpp"                                                                                                
29 #include "gc/g1/g1ConcurrentMark.inline.hpp"                                                                                         
30 #include "gc/g1/g1SATBCardTableModRefBS.hpp"                                                                                         
31 #include "gc/g1/heapRegionManager.inline.hpp"                                                                                        
32 #include "gc/g1/heapRegionSet.inline.hpp"                                                                                            
33 #include "gc/shared/taskqueue.hpp"                                                                                                   
34 #include "runtime/orderAccess.inline.hpp"                                                                                            
35 
36 G1EvacStats* G1CollectedHeap::alloc_buffer_stats(InCSetState dest) {                                                                 
37   switch (dest.value()) {                                                                                                            
38     case InCSetState::Young:                                                                                                         
39       return &_survivor_evac_stats;                                                                                                  
40     case InCSetState::Old:                                                                                                           
41       return &_old_evac_stats;                                                                                                       
42     default:                                                                                                                         
43       ShouldNotReachHere();                                                                                                          
44       return NULL; // Keep some compilers happy                                                                                      
45   }                                                                                                                                  
46 }                                                                                                                                    
47 
48 size_t G1CollectedHeap::desired_plab_sz(InCSetState dest) {                                                                          
49   size_t gclab_word_size = alloc_buffer_stats(dest)->desired_plab_sz(G1CollectedHeap::heap()->workers()->active_workers());          

7  *
8  * This code is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * version 2 for more details (a copy is included in the LICENSE file that
12  * accompanied this code).
13  *
14  * You should have received a copy of the GNU General Public License version
15  * 2 along with this work; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17  *
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19  * or visit www.oracle.com if you need additional information or have any
20  * questions.
21  *
22  */
23 
24 #ifndef SHARE_VM_GC_G1_G1COLLECTEDHEAP_INLINE_HPP
25 #define SHARE_VM_GC_G1_G1COLLECTEDHEAP_INLINE_HPP
26 
27 #include "gc/g1/g1BarrierSet.hpp"
28 #include "gc/g1/g1CollectedHeap.hpp"
29 #include "gc/g1/g1CollectorState.hpp"
30 #include "gc/g1/g1ConcurrentMark.inline.hpp"

31 #include "gc/g1/heapRegionManager.inline.hpp"
32 #include "gc/g1/heapRegionSet.inline.hpp"
33 #include "gc/shared/taskqueue.hpp"
34 #include "runtime/orderAccess.inline.hpp"
35 
36 G1EvacStats* G1CollectedHeap::alloc_buffer_stats(InCSetState dest) {
37   switch (dest.value()) {
38     case InCSetState::Young:
39       return &_survivor_evac_stats;
40     case InCSetState::Old:
41       return &_old_evac_stats;
42     default:
43       ShouldNotReachHere();
44       return NULL; // Keep some compilers happy
45   }
46 }
47 
48 size_t G1CollectedHeap::desired_plab_sz(InCSetState dest) {
49   size_t gclab_word_size = alloc_buffer_stats(dest)->desired_plab_sz(G1CollectedHeap::heap()->workers()->active_workers());
< prev index next >