Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7090259

Fix hotspot sources to build with old compilers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8-pool
    • Fix Version/s: hs22
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        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);

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kvn Vladimir Kozlov
                  Reporter:
                  kvn Vladimir Kozlov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: