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

Fix invalid code in bytecodeInterpreter that can cause gcc ICE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs15
    • hs15
    • hotspot
    • None
    • b01
    • generic
    • linux_ubuntu

        From Matthias Klose <###@###.###>:

        please see
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38593
        and
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38725

        looks like current GCC versions accept invalid code:

        "That's really a duplicate of PR38725: The code contains many lines of the form

          goto *dispatch_table[opcode];

        where dispatch_table[opcode] is of the type uintptr_t which is a typedef
        to unsigned int. Writing

          goto *(void*)dispatch_table[opcode];

        instead makes the ICE disappear."

              coleenp Coleen Phillimore
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: