< prev index next >

hotspot/src/share/vm/gc_implementation/g1/g1AllocationContext.hpp

Print this page
rev 6912 : 8065227: Report allocation context stats at end of cleanup
Summary: Moved allocation context update from remark to the cleanup phase.
Reviewed-by: mgerdin, jmasa


  28 #include "memory/allocation.hpp"
  29 
  30 typedef unsigned char AllocationContext_t;
  31 
  32 class AllocationContext : AllStatic {
  33 public:
  34   // Currently used context
  35   static AllocationContext_t current() {
  36     return 0;
  37   }
  38   // System wide default context
  39   static AllocationContext_t system() {
  40     return 0;
  41   }
  42 };
  43 
  44 class AllocationContextStats: public StackObj {
  45 public:
  46   inline void clear() { }
  47   inline void update(bool full_gc) { }
  48   inline void update_at_remark() { }
  49   inline bool available() { return false; }
  50 };
  51 
  52 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1ALLOCATIONCONTEXT_HPP


  28 #include "memory/allocation.hpp"
  29 
  30 typedef unsigned char AllocationContext_t;
  31 
  32 class AllocationContext : AllStatic {
  33 public:
  34   // Currently used context
  35   static AllocationContext_t current() {
  36     return 0;
  37   }
  38   // System wide default context
  39   static AllocationContext_t system() {
  40     return 0;
  41   }
  42 };
  43 
  44 class AllocationContextStats: public StackObj {
  45 public:
  46   inline void clear() { }
  47   inline void update(bool full_gc) { }
  48   inline void update_after_mark() { }
  49   inline bool available() { return false; }
  50 };
  51 
  52 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1ALLOCATIONCONTEXT_HPP
< prev index next >