mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8215009: GCC 8 compilation error in libjli
Reviewed-by: dholmes, mikael, rriggs
This commit is contained in:
parent
7af48cfb45
commit
b818234d2a
5 changed files with 86 additions and 63 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -388,8 +388,8 @@ JLI_Launch(int argc, char ** argv, /* main argc, argv */
|
|||
} while (JNI_FALSE)
|
||||
|
||||
|
||||
int JNICALL
|
||||
JavaMain(void * _args)
|
||||
int
|
||||
JavaMain(void* _args)
|
||||
{
|
||||
JavaMainArgs *args = (JavaMainArgs *)_args;
|
||||
int argc = args->argc;
|
||||
|
@ -2348,7 +2348,7 @@ ContinueInNewThread(InvocationFunctions* ifn, jlong threadStackSize,
|
|||
args.what = what;
|
||||
args.ifn = *ifn;
|
||||
|
||||
rslt = ContinueInNewThread0(JavaMain, threadStackSize, (void*)&args);
|
||||
rslt = CallJavaMainInNewThread(threadStackSize, (void*)&args);
|
||||
/* If the caller has deemed there is an error we
|
||||
* simply return that, otherwise we return the value of
|
||||
* the callee
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -156,10 +156,9 @@ JLI_ReportExceptionDescription(JNIEnv * env);
|
|||
void PrintMachineDependentOptions();
|
||||
|
||||
/*
|
||||
* Block current thread and continue execution in new thread
|
||||
* Block current thread and continue execution in new thread.
|
||||
*/
|
||||
int ContinueInNewThread0(int (JNICALL *continuation)(void *),
|
||||
jlong stack_size, void * args);
|
||||
int CallJavaMainInNewThread(jlong stack_size, void* args);
|
||||
|
||||
/* sun.java.launcher.* platform properties. */
|
||||
void SetJavaLauncherPlatformProps(void);
|
||||
|
@ -224,7 +223,10 @@ jobjectArray CreateApplicationArgs(JNIEnv *env, char **strv, int argc);
|
|||
jobjectArray NewPlatformStringArray(JNIEnv *env, char **strv, int strc);
|
||||
jclass GetLauncherHelperClass(JNIEnv *env);
|
||||
|
||||
int JNICALL JavaMain(void * args); /* entry point */
|
||||
/*
|
||||
* Entry point.
|
||||
*/
|
||||
int JavaMain(void* args);
|
||||
|
||||
enum LaunchMode { // cf. sun.launcher.LauncherHelper
|
||||
LM_UNKNOWN = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue