comparison src/share/vm/services/memPtr.hpp @ 10127:b80cc96882f7

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
author zgu
date Thu, 18 Apr 2013 10:04:44 -0400
parents 4102b59539ce
children 1f4355cee9a2
comparison
equal deleted inserted replaced
10126:63e31ce40bdb 10127:b80cc96882f7
87 /* 87 /*
88 * class that wraps an address to a memory block, 88 * class that wraps an address to a memory block,
89 * the memory pointer either points to a malloc'd 89 * the memory pointer either points to a malloc'd
90 * memory block, or a mmap'd memory block 90 * memory block, or a mmap'd memory block
91 */ 91 */
92 class MemPointer : public _ValueObj { 92 class MemPointer VALUE_OBJ_CLASS_SPEC {
93 public: 93 public:
94 MemPointer(): _addr(0) { } 94 MemPointer(): _addr(0) { }
95 MemPointer(address addr): _addr(addr) { } 95 MemPointer(address addr): _addr(addr) { }
96 96
97 MemPointer(const MemPointer& copy_from) { 97 MemPointer(const MemPointer& copy_from) {