mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7191124: Optimized build is broken due to inconsistent use of DEBUG_ONLY and NOT_PRODUCT macros in NMT
Updated all related variables and methods to use NOT_PRODUCT macros Reviewed-by: coleenp, acorn, kvn
This commit is contained in:
parent
c99e9bbc0f
commit
5bc134a53b
6 changed files with 29 additions and 29 deletions
|
@ -59,7 +59,7 @@ class MemPointerArray : public CHeapObj<mtNMT> {
|
|||
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 @@ template <class E> class MemPointerArrayImpl : public MemPointerArray {
|
|||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue