< prev index next >
src/share/vm/logging/logOutputList.hpp
Print this page
rev 8933 : 8046148.01
@@ -21,10 +21,11 @@
* 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,13 +43,13 @@
//
// 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 {
+class LogOutputList VALUE_OBJ_CLASS_SPEC {
private:
- struct LogOutputNode : public CHeapObj<mtInternal> {
+ struct LogOutputNode : public CHeapObj<mtLogging> {
LogOutput* _value;
LogOutputNode* _next;
LogLevelType _level;
};
@@ -78,11 +79,11 @@
// 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 {
+ class Iterator VALUE_OBJ_CLASS_SPEC {
friend class LogOutputList;
private:
LogOutputNode* _current;
LogOutputList* _list;
Iterator(LogOutputList* list, LogOutputNode* start) : _current(start), _list(list) {
@@ -114,6 +115,6 @@
LogOutputNode* end() const {
return NULL;
}
};
-#endif
+#endif // SHARE_VM_LOGGING_LOGOUTPUTLIST_HPP
< prev index next >