diff 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
line wrap: on
line diff
--- a/src/share/vm/services/memPtrArray.hpp	Fri Aug 10 23:16:52 2012 -0700
+++ b/src/share/vm/services/memPtrArray.hpp	Tue Aug 14 13:56:46 2012 -0400
@@ -59,7 +59,7 @@
   virtual size_t instance_size() const = 0;
   virtual bool shrink() = 0;
 
-  debug_only(virtual int capacity() const = 0;)
+  NOT_PRODUCT(virtual int capacity() const = 0;)
 };
 
 // Iterator interface
@@ -205,7 +205,7 @@
     return _size;
   }
 
-  debug_only(int capacity() const { return _max_size; })
+  NOT_PRODUCT(int capacity() const { return _max_size; })
 
   void clear() {
     assert(_data != NULL, "Just check");