提交 2da9019f 编写于 作者: Z zgu

8012464: NMT: classes should not derive from _ValueObj, use VALUE_OBJ_CLASS_SPEC instead

Summary: NMT value objects should use VALUE_OBJ_CLASS_SPEC instead of deriving from _ValueObj
Reviewed-by: coleenp, hseigel, dholmes
上级 61bc2627
...@@ -133,7 +133,7 @@ typedef struct _memType2Name { ...@@ -133,7 +133,7 @@ typedef struct _memType2Name {
// This class aggregates malloc'd records by memory type // This class aggregates malloc'd records by memory type
class MallocMem : public _ValueObj { class MallocMem VALUE_OBJ_CLASS_SPEC {
private: private:
MEMFLAGS _type; MEMFLAGS _type;
...@@ -211,7 +211,7 @@ class ArenaMem : public MallocMem { ...@@ -211,7 +211,7 @@ class ArenaMem : public MallocMem {
}; };
// This class aggregates virtual memory by its memory type // This class aggregates virtual memory by its memory type
class VMMem : public _ValueObj { class VMMem VALUE_OBJ_CLASS_SPEC {
private: private:
MEMFLAGS _type; MEMFLAGS _type;
...@@ -296,7 +296,7 @@ class BaselineComparisonReporter; ...@@ -296,7 +296,7 @@ class BaselineComparisonReporter;
* aggregates memory usage by callsites when detail tracking * aggregates memory usage by callsites when detail tracking
* is on. * is on.
*/ */
class MemBaseline : public _ValueObj { class MemBaseline VALUE_OBJ_CLASS_SPEC {
friend class BaselineReporter; friend class BaselineReporter;
friend class BaselineComparisonReporter; friend class BaselineComparisonReporter;
......
...@@ -89,7 +89,7 @@ class SequenceGenerator : AllStatic { ...@@ -89,7 +89,7 @@ class SequenceGenerator : AllStatic {
* the memory pointer either points to a malloc'd * the memory pointer either points to a malloc'd
* memory block, or a mmap'd memory block * memory block, or a mmap'd memory block
*/ */
class MemPointer : public _ValueObj { class MemPointer VALUE_OBJ_CLASS_SPEC {
public: public:
MemPointer(): _addr(0) { } MemPointer(): _addr(0) { }
MemPointer(address addr): _addr(addr) { } MemPointer(address addr): _addr(addr) { }
......
...@@ -308,7 +308,7 @@ class VMRecordIterator : public MemPointerArrayIterator { ...@@ -308,7 +308,7 @@ class VMRecordIterator : public MemPointerArrayIterator {
} }
}; };
class StagingArea : public _ValueObj { class StagingArea VALUE_OBJ_CLASS_SPEC {
private: private:
MemPointerArray* _malloc_data; MemPointerArray* _malloc_data;
MemPointerArray* _vm_data; MemPointerArray* _vm_data;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
// Maximum MAX_GENERATIONS generation data can be tracked. // Maximum MAX_GENERATIONS generation data can be tracked.
#define MAX_GENERATIONS 512 #define MAX_GENERATIONS 512
class GenerationData : public _ValueObj { class GenerationData VALUE_OBJ_CLASS_SPEC {
private: private:
int _number_of_classes; int _number_of_classes;
MemRecorder* _recorder_list; MemRecorder* _recorder_list;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册