United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6743059 : Error in spaceDecorator.cpp for "optimized" build.

Details
Type:
Bug
Submit Date:
2008-08-29
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2008-10-07
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs14 (b06)

Related Reports
Backport:
Backport:

Sub Tasks

Description
An build of the optimized target fails with

"/net/karachi/scratch/jmasa/hg_gc_baseline_ref/src/share/vm/gc_implementation/shared/spaceDecorator.cpp", line 36: Error: value is not a member of HeapWord.
1 Error(s) detected.

                                    

Comments
EVALUATION

Define the value() method in HeapWord under 
not PRODUCT instead of ASSERT.
                                     
2008-08-29
SUGGESTED FIX

diff --git a/src/share/vm/utilities/globalDefinitions.hpp b/src/share/vm/utilities/globalDefinitions.hpp
--- a/src/share/vm/utilities/globalDefinitions.hpp
+++ b/src/share/vm/utilities/globalDefinitions.hpp
@@ -99,7 +99,7 @@ class HeapWord {
   friend class VMStructs;
  private:
   char* i;
-#ifdef ASSERT
+#ifndef PRODUCT
  public:
   char* value() { return i; }
 #endif
                                     
2008-08-29
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/a4f9ef0c0375
                                     
2008-09-05



Hardware and Software, Engineered to Work Together