24
25 #ifndef SHARE_VM_GC_G1_G1ALLOCATIONCONTEXT_HPP
26 #define SHARE_VM_GC_G1_G1ALLOCATIONCONTEXT_HPP
27
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_G1_G1ALLOCATIONCONTEXT_HPP
|
24
25 #ifndef SHARE_VM_GC_G1_G1ALLOCATIONCONTEXT_HPP
26 #define SHARE_VM_GC_G1_G1ALLOCATIONCONTEXT_HPP
27
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 #endif // SHARE_VM_GC_G1_G1ALLOCATIONCONTEXT_HPP
|