United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7191124 Optimized build is broken due to inconsistent use of DEBUG_ONLY and NOT_PRODUCT macros in NMT
JDK-7191124 : Optimized build is broken due to inconsistent use of DEBUG_ONLY and NOT_PRODUCT macros in NMT

Details
Type:
Bug
Submit Date:
2012-08-13
Status:
Closed
Updated Date:
2013-07-18
Project Name:
JDK
Resolved Date:
2012-08-27
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs24 (b21)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

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

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

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

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



Hardware and Software, Engineered to Work Together