< prev index next >

src/share/vm/gc_implementation/shenandoah/shenandoahAllocTracker.hpp

Print this page
rev 10674 : [backport] Move ShenandoahAllocType and ShenandoahAllocRequest to separate file
rev 10690 : [backport] Cleanup header files and forward declarations
rev 10729 : [backport] Move HdrSeq and BinaryMagnitudeSeq into Shenandoah utilities
rev 10772 : [backport] Update copyrights

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2017, Red Hat, Inc. and/or its affiliates.
+ * Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.
  *

@@ -22,28 +22,27 @@
  */
 
 #ifndef SHARE_VM_GC_SHENANDOAH_SHENANDOAHALLOCTRACKER_HPP
 #define SHARE_VM_GC_SHENANDOAH_SHENANDOAHALLOCTRACKER_HPP
 
-#include "gc_implementation/shenandoah/shenandoahHeap.hpp"
+#include "gc_implementation/shenandoah/shenandoahAllocRequest.hpp"
+#include "gc_implementation/shenandoah/shenandoahNumberSeq.hpp"
 #include "memory/allocation.hpp"
-#include "utilities/numberSeq.hpp"
 #include "utilities/ostream.hpp"
 
 class ShenandoahAllocTracker : public CHeapObj<mtGC> {
 private:
-  BinaryMagnitudeSeq _alloc_size[ShenandoahHeap::_ALLOC_LIMIT];
-  BinaryMagnitudeSeq _alloc_latency[ShenandoahHeap::_ALLOC_LIMIT];
+  BinaryMagnitudeSeq _alloc_size[ShenandoahAllocRequest::_ALLOC_LIMIT];
+  BinaryMagnitudeSeq _alloc_latency[ShenandoahAllocRequest::_ALLOC_LIMIT];
 
 public:
   void record_alloc_latency(size_t words_size,
-                            ShenandoahHeap::AllocType _alloc_type,
+                            ShenandoahAllocRequest::Type _alloc_type,
                             double latency_us) {
     _alloc_size[_alloc_type].add(words_size);
     _alloc_latency[_alloc_type].add((size_t)latency_us);
   }
 
   void print_on(outputStream* out) const;
 };
 
-
 #endif // SHARE_VM_GC_SHENANDOAH_SHENANDOAHALLOCTRACKER_HPP
< prev index next >