comparison src/share/vm/services/memPtrArray.hpp @ 6607:e5bf1c79ed5b

7191124: Optimized build is broken due to inconsistent use of DEBUG_ONLY and NOT_PRODUCT macros in NMT Summary: Updated all related variables and methods to use NOT_PRODUCT macros Reviewed-by: coleenp, acorn, kvn
author zgu
date Tue, 14 Aug 2012 13:56:46 -0400
parents d2a62e0f25eb
children 33143ee07800
comparison
equal deleted inserted replaced
6606:98625323d3a3 6607:e5bf1c79ed5b
57 virtual MemPointer* at(int index) const = 0; 57 virtual MemPointer* at(int index) const = 0;
58 virtual void sort(FN_SORT fn) = 0; 58 virtual void sort(FN_SORT fn) = 0;
59 virtual size_t instance_size() const = 0; 59 virtual size_t instance_size() const = 0;
60 virtual bool shrink() = 0; 60 virtual bool shrink() = 0;
61 61
62 debug_only(virtual int capacity() const = 0;) 62 NOT_PRODUCT(virtual int capacity() const = 0;)
63 }; 63 };
64 64
65 // Iterator interface 65 // Iterator interface
66 class MemPointerArrayIterator VALUE_OBJ_CLASS_SPEC { 66 class MemPointerArrayIterator VALUE_OBJ_CLASS_SPEC {
67 public: 67 public:
203 int length() const { 203 int length() const {
204 assert(_data != NULL, "Just check"); 204 assert(_data != NULL, "Just check");
205 return _size; 205 return _size;
206 } 206 }
207 207
208 debug_only(int capacity() const { return _max_size; }) 208 NOT_PRODUCT(int capacity() const { return _max_size; })
209 209
210 void clear() { 210 void clear() {
211 assert(_data != NULL, "Just check"); 211 assert(_data != NULL, "Just check");
212 _size = 0; 212 _size = 0;
213 } 213 }