< prev index next >

src/hotspot/share/logging/logOutputList.hpp

Print this page

        

*** 42,52 **** // // Each instance keeps track of the number of current readers of the list. // To remove a node from the list the node must first be unlinked, // and the memory for that node can be freed whenever the removing // thread observes an active reader count of 0 (after unlinking it). ! class LogOutputList VALUE_OBJ_CLASS_SPEC { private: struct LogOutputNode : public CHeapObj<mtLogging> { LogOutput* _value; LogOutputNode* _next; LogLevelType _level; --- 42,52 ---- // // Each instance keeps track of the number of current readers of the list. // To remove a node from the list the node must first be unlinked, // and the memory for that node can be freed whenever the removing // thread observes an active reader count of 0 (after unlinking it). ! class LogOutputList { private: struct LogOutputNode : public CHeapObj<mtLogging> { LogOutput* _value; LogOutputNode* _next; LogLevelType _level;
*** 86,96 **** } // Set (add/update/remove) the output to the specified level. void set_output_level(LogOutput* output, LogLevelType level); ! class Iterator VALUE_OBJ_CLASS_SPEC { friend class LogOutputList; private: LogOutputNode* _current; LogOutputList* _list; Iterator(LogOutputList* list, LogOutputNode* start) : _current(start), _list(list) { --- 86,96 ---- } // Set (add/update/remove) the output to the specified level. void set_output_level(LogOutput* output, LogLevelType level); ! class Iterator { friend class LogOutputList; private: LogOutputNode* _current; LogOutputList* _list; Iterator(LogOutputList* list, LogOutputNode* start) : _current(start), _list(list) {
< prev index next >