8231171: remove remaining sun.java.launcher.pid references

Reviewed-by: alanb, dholmes
This commit is contained in:
Matthias Baesken 2019-09-20 10:28:48 +02:00
parent bb56c020f4
commit e2ebf7b822
9 changed files with 6 additions and 110 deletions

View file

@ -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,