JDK-7191124 : Optimized build is broken due to inconsistent use of DEBUG_ONLY and NOT_PRODUCT macros in NMT
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs24
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-13
  • Updated: 2013-07-18
  • Resolved: 2012-08-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Resolved 8Resolved hs24Resolved
Description
Inconsistent use of DEBUG_ONLY and NOT_PRODUCT break optimized build.

> src/share/vm/services/memPtr.hpp:54:  DEBUG_ONLY(static jint max_seq_num() { return _max_seq_number; })
> 
> 
> /home/ecaspole/views/hotspot/src/share/vm/services/memTracker.cpp: In static member function ‘static void MemTracker::print_tracker_stats(outputStream*)’:
> /home/ecaspole/views/hotspot/src/share/vm/services/memTracker.cpp:602:46: error: ‘max_seq_num’ is not a member of ‘SequenceGenerator’
> make[4]: *** [memTracker.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[4]: Leaving directory `/home/ecaspole/views/hotspot/build/linux/linux_amd64_compiler2/optimized'
> make[3]: *** [the_vm] Error 2
> make[3]: Leaving directory `/home/ecaspole/views/hotspot/build/linux/linux_amd64_compiler2/optimized'
> make[2]: *** [optimized] Error 2
> make[2]: Leaving directory `/home/ecaspole/views/hotspot/build/linux'
> make[1]: *** [generic_build2] Error 2
> make[1]: Leaving directory `/home/ecaspole/views/hotspot/make'
> make: *** [optimized] Error 2
>

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/e5bf1c79ed5b
2012-08-22

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/e5bf1c79ed5b
2012-08-14

EVALUATION MemTracker::print_tracker_stats() was DEBUG_ONLY method, when changed to NOT_PRODUCT, not all references were updated, which caused failure.
2012-08-14