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

Undefined behaviour in JDK 8u HotSpot

    XMLWordPrintable

Details

    Description

      In several places in HotSpot, the C++ code has Undefined Behaviour. This includes null pointer dereferences and accesses to objects outside their lifetimes.

      While many of these bugs are fixed are fixed in later releases, the changes are intrusive and extensive, and arguably too much for a stable (not to say vintage) project like OpenJDK 8. Therefore, in order to allow 8u to build on new versions of GCC we should use the following build-time options if they are available:

      -fno-lifetime-dse -fno-delete-null-pointer-checks

      Attachments

        Issue Links

          Activity

            People

              sgehwolf Severin Gehwolf
              aph Andrew Haley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: