United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6872000 G1: compilation fails on linux/older gcc
JDK-6872000 : G1: compilation fails on linux/older gcc

Details
Type:
Bug
Submit Date:
2009-08-14
Status:
Closed
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2010-01-15
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs16
Fixed Versions:
hs16 (b08)

Related Reports
Backport:
Backport:

Sub Tasks

Description
When building HotSpot for JDK 6 we're getting the following error:

src/share/vm/gc_implementation/g1/concurrentMark.cpp: In
   member function `bool CSMarkOopClosure::drain()':
src/share/vm/gc_implementation/g1/concurrentMark.cpp:2404: parse
   error before `;' token

                                    

Comments
EVALUATION

See Description.
                                     
2009-08-14
SUGGESTED FIX

I propose to fix it thus:

--- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp
+++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp
@@ -2400,10 +2400,7 @@
         }
         // Now process this portion of this one.
         int lim = MIN2(next_arr_ind, len);
-        for (int j = arr_ind; j < lim; j++) {
-          do_oop(aobj->obj_at_addr<T>(j));
-        }
-
+        aobj->oop_iterate_range(this, arr_ind, lim);
       } else {
         obj->oop_iterate(this);
       }
                                     
2009-08-14
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/308762b2bf14
                                     
2009-08-15



Hardware and Software, Engineered to Work Together