Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266167 Clean up GCC 11 warnings
  3. JDK-8266170

-Wnonnull happens in classLoaderData.inline.hpp

XMLWordPrintable

    • b21

        In file included from /home/ysuenaga/git-forked/jdk/src/hotspot/share/utilities/globalDefinitions.hpp:29,
                         from /home/ysuenaga/git-forked/jdk/src/hotspot/share/memory/allocation.hpp:29,
                         from /home/ysuenaga/git-forked/jdk/src/hotspot/share/classfile/classLoaderData.hpp:28,
                         from /home/ysuenaga/git-forked/jdk/src/hotspot/share/precompiled/precompiled.hpp:34:
        In member function 'oop ClassLoaderData::class_loader() const',
            inlined from 'void Dictionary::verify()' at /home/ysuenaga/git-forked/jdk/src/hotspot/share/classfile/dictionary.cpp:635:3:
        /home/ysuenaga/git-forked/jdk/src/hotspot/share/classfile/classLoaderData.inline.hpp:37:50: warning: 'this' pointer is null [-Wnonnull]
           37 | assert(_holder.is_null() || holder_no_keepalive() != NULL , "This class loader data holder must be alive");
              | ~~~~~~~~~~~~~~~~~~~^~

              ysuenaga Yasumasa Suenaga
              ysuenaga Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: