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

Backout JDK-8210842 Handle JNIGlobalRefLocker.cpp

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b14

      Description

      Build failures seen on Windows and Solaris after JDK-8210842:

      Windows:


      Creating support/demos/image/jfc/TableExample/TableExample.jar
      Creating support/demos/image/jfc/TransparentRuler/TransparentRuler.jar
      Creating jdk image
      devkit~1\vs2017~1.0\devkit~1.gz\vc\include\xlocale(313): error C2220: warning treated as error - no 'object' file generated
      devkit~1\vs2017~1.0\devkit~1.gz\vc\include\xlocale(313): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
      JtregNativeHotspot.gmk:1516: recipe for target 'build/windows-x64/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.obj' failed
      make[3]: *** [build/windows-x64/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.obj] Error 1


      Solaris:

      Creating jdk image
      Undefined first referenced
       symbol in file
      std::string &std::string::operator=(const char*) build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      char*__rwstd::__rw_basis<char*,std::allocator<char> >::data()const build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      unsigned long std::string::length()const build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      std::string::basic_string(const char*,const std::allocator<char>&) build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      std::allocator_interface<std::allocator<char>,char>::allocator_interface(const std::allocator<char>&) build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      std::string::~basic_string() build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      std::string::__nullref build/solaris-sparcv9-debug/support/test/hotspot/jtreg/native/support/libJNIGlobalRefLocker/libJNIGlobalRefLocker.o
      [Hint: static member std::string::__nullref must be defined in the program]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mikael Mikael Vidstedt
                Reporter:
                mikael Mikael Vidstedt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: