mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8231171: remove remaining sun.java.launcher.pid references
Reviewed-by: alanb, dholmes
This commit is contained in:
parent
bb56c020f4
commit
e2ebf7b822
9 changed files with 6 additions and 110 deletions
|
@ -790,16 +790,6 @@ CallJavaMainInNewThread(jlong stack_size, void* args) {
|
|||
/* Coarse estimation of number of digits assuming the worst case is a 64-bit pid. */
|
||||
#define MAX_PID_STR_SZ 20
|
||||
|
||||
void SetJavaLauncherPlatformProps() {
|
||||
/* Linux only */
|
||||
#ifdef __linux__
|
||||
const char *substr = "-Dsun.java.launcher.pid=";
|
||||
char *pid_prop_str = (char *)JLI_MemAlloc(JLI_StrLen(substr) + MAX_PID_STR_SZ + 1);
|
||||
sprintf(pid_prop_str, "%s%d", substr, getpid());
|
||||
AddOption(pid_prop_str, NULL);
|
||||
#endif /* __linux__ */
|
||||
}
|
||||
|
||||
int
|
||||
JVMInit(InvocationFunctions* ifn, jlong threadStackSize,
|
||||
int argc, char **argv,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue