< prev index next >

src/share/vm/gc/shared/gcId.hpp

Print this page

        

*** 28,52 **** #include "memory/allocation.hpp" class GCId : public AllStatic { friend class GCIdMark; static uint _next_id; static const uint UNDEFINED = (uint)-1; static const uint create(); public: - // Returns the currently active GC id. Asserts that there is an active GC id. static const uint current(); - // Same as current() but can return undefined() if no GC id is currently active - static const uint current_raw(); - static const uint undefined() { return UNDEFINED; } }; class GCIdMark { ! uint _gc_id; public: GCIdMark(); - GCIdMark(uint gc_id); ~GCIdMark(); }; #endif // SHARE_VM_GC_SHARED_GCID_HPP --- 28,50 ---- #include "memory/allocation.hpp" class GCId : public AllStatic { friend class GCIdMark; static uint _next_id; + static uint _current_id; static const uint UNDEFINED = (uint)-1; static const uint create(); + static void set_current(uint gc_id) { _current_id = gc_id; } public: static const uint current(); }; class GCIdMark { ! uint _previous_gc_id; ! DEBUG_ONLY(uint _gc_id;) public: GCIdMark(); ~GCIdMark(); }; #endif // SHARE_VM_GC_SHARED_GCID_HPP
< prev index next >