JDK-7090259 : Fix hotspot sources to build with old compilers
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8-pool
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-09-13
  • Updated: 2011-10-07
  • Resolved: 2011-09-30
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 Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Description
Several issues were identified when we tried to build HS22 for jdk6u29:

"/tmp/jprt/P1/170801.amurillo/source/src/share/vm/opto/block.cpp", line 1372: Warning (Anachronism): Formal argument 4 of type extern "C" int(*)(const void*,const void*) in call to std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const void*,const void*)) is being passed int(*)(const void*,const void*).

"/tmp/jprt/P1/170801.amurillo/source/src/share/vm/classfile/javaClasses.cpp", line 2704: Error: Overloading ambiguity between "methodOop::operator methodOopDesc*() const" and "oop::operator void*() const".

"/opt/jprt/temp/P1/170801.amurillo/source/src/share/vm/gc_implementation/g1/g1ErgoVerbose.hpp", line 62: Warning: Identifier expected instead of "}".
1 Warning(s) detected.p

"/opt/jprt/temp/P1/170801.amurillo/source/src/share/vm/oops/instanceRefKlass.cpp", line 355: Warning: A non-POD object of type "oop" passed as a variable argument to function "FormatBuffer<256>::FormatBuffer(const char*, ...)".

Also vs2003 generates incorrect optimized code for next line in oops/methodOop.cpp:

        QuickSort::sort<oop>((oop*)(methods->base()), length, method_comparator<oop>, idempotent);

Comments
EVALUATION See main CR
24-09-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/f94227b6117b
14-09-2011