86 } |
86 } |
87 |
87 |
88 public: |
88 public: |
89 // Accessors |
89 // Accessors |
90 static bool is_active() { |
90 static bool is_active() { |
91 assert(_needs_gc || SafepointSynchronize::is_at_safepoint(), "only read at safepoint"); |
91 assert(SafepointSynchronize::is_at_safepoint(), "only read at safepoint"); |
92 return is_active_internal(); |
92 return is_active_internal(); |
93 } |
93 } |
94 static bool needs_gc() { return _needs_gc; } |
94 static bool needs_gc() { return _needs_gc; } |
95 |
95 |
96 // Shorthand |
96 // Shorthand |