< prev index next >

src/java.base/share/native/libjli/java.c

Print this page
@@ -217,10 +217,18 @@
    */
  #ifndef STACK_SIZE_MINIMUM
  #define STACK_SIZE_MINIMUM (64 * KB)
  #endif
  
+ #ifdef INCLUDE_TSAN
+ /*
+  * Function pointer to JVM's TSAN symbolize function.
+  */
+ __attribute__((visibility("default")))
+ TsanSymbolize_t tsan_symbolize_func = NULL;
+ #endif
+ 
  /*
   * Entry point.
   */
  JNIEXPORT int JNICALL
  JLI_Launch(int argc, char ** argv,              /* main argc, argv */

@@ -296,10 +304,13 @@
      }
  
      if (!LoadJavaVM(jvmpath, &ifn)) {
          return(6);
      }
+ #ifdef INCLUDE_TSAN
+     tsan_symbolize_func = ifn.TsanSymbolize;
+ #endif
  
      if (JLI_IsTraceLauncher()) {
          end   = CounterGet();
      }
  
< prev index next >