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

Reenable stringop-overflow warnings

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot

      In JDK-8320212 I disabled the stringop-overflow warning for four files:

      * handshake.cpp
      * jvmciCodeInstaller.cpp
      * jvmtiTagMap.cpp
      * synchronizer.cpp

      This was needed to address build failures with linux/zero (fastdebug). The underlying reason appears to be that GCC 13.2.0 incorrectly believes that JavaThread:current (really: Thread::current) can return nullptr, where in fact it can't. The assert in Thread::current, which calls the ATTRIBUTE_NORETURN report function on failure, should be sufficient to give GCC the necessary information, but apparently that doesn't always work.

      Disabling the warning was a last resort to fix the immediate build issue. It would be preferable to find another, better way to address the warning/failing builds.

            Unassigned Unassigned
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: