< prev index next >

src/hotspot/share/gc/g1/g1NUMAStats.cpp

Print this page
@@ -29,13 +29,10 @@
  double G1NUMAStats::Stat::rate() const {
    return _requested == 0 ? 0 : (double)_hit / _requested * 100;
  }
  
  G1NUMAStats::NodeDataArray::NodeDataArray(uint num_nodes) {
-   // Not using > 1, for -XX:+ForceNUMA support.
-   guarantee(num_nodes > 0, "Number of nodes (%u) should be set", num_nodes);
- 
    // The row represents the number of nodes.
    _num_column = num_nodes;
    // +1 for G1MemoryNodeManager::AnyNodeIndex.
    _num_row = num_nodes + 1;
  

@@ -123,12 +120,11 @@
  }
  
  G1NUMAStats::G1NUMAStats(const int* node_ids, uint num_node_ids) :
    _node_ids(node_ids), _num_node_ids(num_node_ids), _node_data() {
  
-   // Not using > 1, for -XX:+ForceNUMA support.
-   assert(_num_node_ids > 0, "Should have at least one node id: %u", _num_node_ids);
+   assert(_num_node_ids > 1, "Should have at least one node id: %u", _num_node_ids);
  
    for (int i = 0; i < NodeDataItemsSentinel; i++) {
      _node_data[i] = new NodeDataArray(_num_node_ids);
    }
  }
< prev index next >