mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-09 06:28:49 +00:00
8039926: -spash:<image> can't be combined with -xStartOnFirstThread since JDK 7
Reviewed-by: anthony, azvegint
This commit is contained in:
parent
c4745c1830
commit
aab9bcc042
@ -142,9 +142,16 @@ SplashInitPlatform(Splash * splash) {
|
||||
splash->screenFormat.byteOrder = 1 ? BYTE_ORDER_LSBFIRST : BYTE_ORDER_MSBFIRST;
|
||||
splash->screenFormat.depthBytes = 4;
|
||||
|
||||
[JNFRunLoop performOnMainThreadWaiting:NO withBlock:^() {
|
||||
[NSApplicationAWT runAWTLoopWithApp:[NSApplicationAWT sharedApplication]];
|
||||
}];
|
||||
// If this property is present we are running SWT and should not start a runLoop
|
||||
// Can't check if running SWT in webstart, so splash screen in webstart SWT
|
||||
// applications is not supported
|
||||
char envVar[80];
|
||||
snprintf(envVar, sizeof(envVar), "JAVA_STARTED_ON_FIRST_THREAD_%d", getpid());
|
||||
if (getenv(envVar) == NULL) {
|
||||
[JNFRunLoop performOnMainThreadWaiting:NO withBlock:^() {
|
||||
[NSApplicationAWT runAWTLoopWithApp:[NSApplicationAWT sharedApplication]];
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user