< prev index next >
src/hotspot/os/bsd/os_bsd.cpp
Print this page
rev 56298 : 8231171: remove remaining sun.java.launcher.pid references
@@ -134,12 +134,10 @@
// For diagnostics to print a message once. see run_periodic_checks
static sigset_t check_signal_done;
static bool check_signals = true;
-static pid_t _initial_pid = 0;
-
// Signal number used to suspend/resume a thread
// do not use any signal number less than SIGSEGV, see 4355769
static int SR_signum = SIGUSR2;
sigset_t SR_sigset;
@@ -1139,11 +1137,11 @@
// if you are looking for the result of a call to getpid() that
// returns a unique pid for the calling thread, then look at the
// OSThread::thread_id() method in osThread_bsd.hpp file
- return (int)(_initial_pid ? _initial_pid : getpid());
+ return (int)(getpid());
}
// DLL functions
const char* os::dll_file_extension() { return JNI_LIB_SUFFIX; }
@@ -3085,20 +3083,10 @@
// this is called _before_ the most of global arguments have been parsed
void os::init(void) {
char dummy; // used to get a guess on initial stack address
- // With BsdThreads the JavaMain thread pid (primordial thread)
- // is different than the pid of the java launcher thread.
- // So, on Bsd, the launcher thread pid is passed to the VM
- // via the sun.java.launcher.pid property.
- // Use this property instead of getpid() if it was correctly passed.
- // See bug 6351349.
- pid_t java_launcher_pid = (pid_t) Arguments::sun_java_launcher_pid();
-
- _initial_pid = (java_launcher_pid > 0) ? java_launcher_pid : getpid();
-
clock_tics_per_sec = CLK_TCK;
init_random(1234567);
Bsd::set_page_size(getpagesize());
< prev index next >