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

thread_local causes undefined symbol error with XL C

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • None
    • hotspot
    • None
    • b24
    • aix

      After JDK-8282191, the following error is encountered when building with xlc on AIX while linking libjvm.so:

      ld: 0711-317 ERROR: Undefined symbol: ._ZTH13threadContext
      ld: 0711-344 See the loadmap file /build_aix/hotspot/variant-server/libjvm/objs/libjvm.loadmap for more information.
      gmake[3]: *** [lib/CompileJvm.gmk:149: /build_aix/support/modules_libs/java.base/server/libjvm.so] Error 8
       
      gmake[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2

      I believe this to be a bug in xlc that surfaces when using 'thread_local' with a struct containing a dtor.

            tsteele Tyler Steele
            tsteele Tyler Steele
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: