< prev index next >
src/share/vm/logging/logOutputList.hpp
Print this page
rev 8933 : 8046148.01
*** 21,30 ****
--- 21,31 ----
* questions.
*
*/
#ifndef SHARE_VM_LOGGING_LOGOUTPUTLIST_HPP
#define SHARE_VM_LOGGING_LOGOUTPUTLIST_HPP
+
#include "logging/logLevel.hpp"
#include "memory/allocation.hpp"
#include "runtime/atomic.hpp"
#include "utilities/globalDefinitions.hpp"
*** 42,54 ****
//
// 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<mtInternal> {
LogOutput* _value;
LogOutputNode* _next;
LogLevelType _level;
};
--- 43,55 ----
//
// 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;
};
*** 78,88 ****
// Bookkeeping functions to keep track of number of active readers/iterators for the list.
jint increase_readers();
jint decrease_readers();
void wait_until_no_readers() const;
! class Iterator {
friend class LogOutputList;
private:
LogOutputNode* _current;
LogOutputList* _list;
Iterator(LogOutputList* list, LogOutputNode* start) : _current(start), _list(list) {
--- 79,89 ----
// Bookkeeping functions to keep track of number of active readers/iterators for the list.
jint increase_readers();
jint decrease_readers();
void wait_until_no_readers() const;
! class Iterator VALUE_OBJ_CLASS_SPEC {
friend class LogOutputList;
private:
LogOutputNode* _current;
LogOutputList* _list;
Iterator(LogOutputList* list, LogOutputNode* start) : _current(start), _list(list) {
*** 114,119 ****
LogOutputNode* end() const {
return NULL;
}
};
! #endif
--- 115,120 ----
LogOutputNode* end() const {
return NULL;
}
};
! #endif // SHARE_VM_LOGGING_LOGOUTPUTLIST_HPP
< prev index next >