8219856: Spell out G1CollectorPolicy::is_hetero_heap
authortschatzl
Mon, 04 Mar 2019 11:49:16 +0100
changeset 53987 e1f707ed0757
parent 53986 9ad20fd52b19
child 53988 efa9bc147d50
8219856: Spell out G1CollectorPolicy::is_hetero_heap Reviewed-by: sangheki, kbarrett
src/hotspot/share/gc/g1/g1CollectedHeap.cpp
src/hotspot/share/gc/g1/g1CollectedHeap.hpp
src/hotspot/share/gc/g1/g1CollectorPolicy.cpp
src/hotspot/share/gc/g1/g1CollectorPolicy.hpp
src/hotspot/share/gc/g1/g1HeterogeneousCollectorPolicy.cpp
src/hotspot/share/gc/g1/g1HeterogeneousCollectorPolicy.hpp
src/hotspot/share/gc/g1/g1Policy.cpp
src/hotspot/share/gc/g1/g1YoungGenSizer.cpp
src/hotspot/share/gc/g1/heapRegionManager.cpp
src/hotspot/share/prims/whitebox.cpp
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -2332,8 +2332,8 @@
   return _cm_thread->request_concurrent_phase(phase);
 }
 
-bool G1CollectedHeap::is_hetero_heap() const {
-  return _collector_policy->is_hetero_heap();
+bool G1CollectedHeap::is_heterogeneous_heap() const {
+  return _collector_policy->is_heterogeneous_heap();
 }
 
 class PrintRegionClosure: public HeapRegionClosure {
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.hpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.hpp	Mon Mar 04 11:49:16 2019 +0100
@@ -1366,7 +1366,7 @@
   // WhiteBox testing support.
   virtual bool supports_concurrent_phase_control() const;
   virtual bool request_concurrent_phase(const char* phase);
-  bool is_hetero_heap() const;
+  bool is_heterogeneous_heap() const;
 
   virtual WorkGang* get_safepoint_workers() { return _workers; }
 
--- a/src/hotspot/share/gc/g1/g1CollectorPolicy.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1CollectorPolicy.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -60,6 +60,6 @@
   return _max_heap_byte_size;
 }
 
-bool G1CollectorPolicy::is_hetero_heap() const {
+bool G1CollectorPolicy::is_heterogeneous_heap() const {
   return false;
 }
--- a/src/hotspot/share/gc/g1/g1CollectorPolicy.hpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1CollectorPolicy.hpp	Mon Mar 04 11:49:16 2019 +0100
@@ -39,6 +39,6 @@
 public:
   G1CollectorPolicy();
   virtual size_t heap_reserved_size_bytes() const;
-  virtual bool is_hetero_heap() const;
+  virtual bool is_heterogeneous_heap() const;
 };
 #endif // SHARE_GC_G1_G1COLLECTORPOLICY_HPP
--- a/src/hotspot/share/gc/g1/g1HeterogeneousCollectorPolicy.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1HeterogeneousCollectorPolicy.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -98,6 +98,6 @@
     return 2 * _max_heap_byte_size;
 }
 
-bool G1HeterogeneousCollectorPolicy::is_hetero_heap() const {
+bool G1HeterogeneousCollectorPolicy::is_heterogeneous_heap() const {
   return true;
 }
--- a/src/hotspot/share/gc/g1/g1HeterogeneousCollectorPolicy.hpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1HeterogeneousCollectorPolicy.hpp	Mon Mar 04 11:49:16 2019 +0100
@@ -41,7 +41,7 @@
 public:
   G1HeterogeneousCollectorPolicy() {}
   virtual size_t heap_reserved_size_bytes() const;
-  virtual bool is_hetero_heap() const;
+  virtual bool is_heterogeneous_heap() const;
   static size_t reasonable_max_memory_for_young();
 };
 
--- a/src/hotspot/share/gc/g1/g1Policy.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1Policy.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -90,7 +90,7 @@
 }
 
 G1Policy* G1Policy::create_policy(G1CollectorPolicy* policy, STWGCTimer* gc_timer_stw) {
-  if (policy->is_hetero_heap()) {
+  if (policy->is_heterogeneous_heap()) {
     return new G1HeterogeneousHeapPolicy(policy, gc_timer_stw);
   } else {
     return new G1Policy(policy, gc_timer_stw);
--- a/src/hotspot/share/gc/g1/g1YoungGenSizer.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1YoungGenSizer.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -131,7 +131,7 @@
 }
 
 G1YoungGenSizer* G1YoungGenSizer::create_gen_sizer(G1CollectorPolicy* policy) {
-  if (policy->is_hetero_heap()) {
+  if (policy->is_heterogeneous_heap()) {
     return new G1HeterogeneousHeapYoungGenSizer();
   } else {
     return new G1YoungGenSizer();
--- a/src/hotspot/share/gc/g1/heapRegionManager.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/heapRegionManager.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -69,7 +69,7 @@
 { }
 
 HeapRegionManager* HeapRegionManager::create_manager(G1CollectedHeap* heap, G1CollectorPolicy* policy) {
-  if (policy->is_hetero_heap()) {
+  if (policy->is_heterogeneous_heap()) {
     return new HeterogeneousHeapRegionManager((uint)(policy->max_heap_byte_size() / HeapRegion::GrainBytes) /*heap size as num of regions*/);
   }
   return new HeapRegionManager();
--- a/src/hotspot/share/prims/whitebox.cpp	Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/prims/whitebox.cpp	Mon Mar 04 11:49:16 2019 +0100
@@ -483,7 +483,7 @@
 #if INCLUDE_G1GC
   if (UseG1GC) {
     G1CollectedHeap* g1h = G1CollectedHeap::heap();
-    if (g1h->is_hetero_heap()) {
+    if (g1h->is_heterogeneous_heap()) {
       uint start_region = HeterogeneousHeapRegionManager::manager()->start_index_of_dram();
       return (jlong)(g1h->base() + start_region * HeapRegion::GrainBytes);
     } else {
@@ -509,7 +509,7 @@
 #if INCLUDE_G1GC
   if (UseG1GC) {
     G1CollectedHeap* g1h = G1CollectedHeap::heap();
-    if (g1h->is_hetero_heap()) {
+    if (g1h->is_heterogeneous_heap()) {
       uint end_region = HeterogeneousHeapRegionManager::manager()->end_index_of_dram();
       return (jlong)(g1h->base() + (end_region + 1) * HeapRegion::GrainBytes - 1);
     } else {
@@ -535,7 +535,7 @@
 #if INCLUDE_G1GC
   if (UseG1GC) {
     G1CollectedHeap* g1h = G1CollectedHeap::heap();
-    if (g1h->is_hetero_heap()) {
+    if (g1h->is_heterogeneous_heap()) {
       uint start_region = HeterogeneousHeapRegionManager::manager()->start_index_of_nvdimm();
       return (jlong)(g1h->base() + start_region * HeapRegion::GrainBytes);
     } else {
@@ -561,7 +561,7 @@
 #if INCLUDE_G1GC
   if (UseG1GC) {
     G1CollectedHeap* g1h = G1CollectedHeap::heap();
-    if (g1h->is_hetero_heap()) {
+    if (g1h->is_heterogeneous_heap()) {
       uint end_region = HeterogeneousHeapRegionManager::manager()->start_index_of_nvdimm();
       return (jlong)(g1h->base() + (end_region + 1) * HeapRegion::GrainBytes - 1);
     } else {