23 */
24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_GCWHEN_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_GCWHEN_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/debug.hpp"
30
31 class GCWhen : AllStatic {
32 public:
33 enum Type {
34 BeforeGC,
35 AfterGC,
36 GCWhenEndSentinel
37 };
38
39 static const char* to_string(GCWhen::Type when) {
40 switch (when) {
41 case BeforeGC: return "Before GC";
42 case AfterGC: return "After GC";
43 default: ShouldNotReachHere(); return NULL;
44 }
45 }
46 };
47
48 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GCWHEN_HPP
|
23 */
24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_GCWHEN_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_GCWHEN_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/debug.hpp"
30
31 class GCWhen : AllStatic {
32 public:
33 enum Type {
34 BeforeGC,
35 AfterGC,
36 GCWhenEndSentinel
37 };
38
39 static const char* to_string(GCWhen::Type when) {
40 switch (when) {
41 case BeforeGC: return "Before GC";
42 case AfterGC: return "After GC";
43 default: ShouldNotReachHere();
44 }
45 }
46 };
47
48 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GCWHEN_HPP
|