< prev index next >

src/hotspot/share/services/memoryManager.cpp

Print this page
@@ -141,12 +141,12 @@
    f->do_oop((oop*) &_memory_mgr_obj);
  }
  
  GCStatInfo::GCStatInfo(int num_pools) {
    // initialize the arrays for memory usage
-   _before_gc_usage_array = (MemoryUsage*) NEW_C_HEAP_ARRAY(MemoryUsage, num_pools, mtInternal);
-   _after_gc_usage_array  = (MemoryUsage*) NEW_C_HEAP_ARRAY(MemoryUsage, num_pools, mtInternal);
+   _before_gc_usage_array = NEW_C_HEAP_ARRAY(MemoryUsage, num_pools, mtInternal);
+   _after_gc_usage_array  = NEW_C_HEAP_ARRAY(MemoryUsage, num_pools, mtInternal);
    _usage_array_size = num_pools;
    clear();
  }
  
  GCStatInfo::~GCStatInfo() {
< prev index next >