src/macosx/bin/java_md_macosx.c

Print this page

        

*** 992,1002 **** if (getenv("HACK_IGNORE_START_ON_FIRST_THREAD") != NULL) return; // XXX: END HACK sameThread = JNI_TRUE; // Set a variable that tells us we started on the main thread. ! // This is used by the AWT during startup. (See awt.m) char envVar[80]; snprintf(envVar, sizeof(envVar), "JAVA_STARTED_ON_FIRST_THREAD_%d", getpid()); setenv(envVar, "1", 1); } --- 992,1002 ---- if (getenv("HACK_IGNORE_START_ON_FIRST_THREAD") != NULL) return; // XXX: END HACK sameThread = JNI_TRUE; // Set a variable that tells us we started on the main thread. ! // This is used by the AWT during startup. (See LWCToolkit.m) char envVar[80]; snprintf(envVar, sizeof(envVar), "JAVA_STARTED_ON_FIRST_THREAD_%d", getpid()); setenv(envVar, "1", 1); }