< prev index next >
src/hotspot/share/runtime/os.hpp
Print this page
rev 56578 : 8232211: Remove dead code from os.hpp|cpp
Reviewed-by: TBD
*** 45,56 ****
// os defines the interface to operating system; this includes traditional
// OS services (time, I/O) as well as other functionality with system-
// dependent code.
- typedef void (*dll_func)(...);
-
class Thread;
class JavaThread;
class NativeCallStack;
class methodHandle;
class OSThread;
--- 45,54 ----
*** 193,210 ****
static jlong elapsed_counter();
static jlong elapsed_frequency();
// The "virtual time" of a thread is the amount of time a thread has
// actually run. The first function indicates whether the OS supports
! // this functionality for the current thread, and if so:
! // * the second enables vtime tracking (if that is required).
! // * the third tells whether vtime is enabled.
! // * the fourth returns the elapsed virtual time for the current
! // thread.
static bool supports_vtime();
- static bool enable_vtime();
- static bool vtime_enabled();
static double elapsedVTime();
// Return current local time in a string (YYYY-MM-DD HH:MM:SS).
// It is MT safe, but not async-safe, as reading time zone
// information may require a lock on some platforms.
--- 191,203 ----
static jlong elapsed_counter();
static jlong elapsed_frequency();
// The "virtual time" of a thread is the amount of time a thread has
// actually run. The first function indicates whether the OS supports
! // this functionality for the current thread, and if so the second
! // returns the elapsed virtual time for the current thread.
static bool supports_vtime();
static double elapsedVTime();
// Return current local time in a string (YYYY-MM-DD HH:MM:SS).
// It is MT safe, but not async-safe, as reading time zone
// information may require a lock on some platforms.
*** 252,269 ****
static int initial_active_processor_count() {
assert(_initial_active_processor_count > 0, "Initial active processor count not set yet.");
return _initial_active_processor_count;
}
- // Bind processes to processors.
- // This is a two step procedure:
- // first you generate a distribution of processes to processors,
- // then you bind processes according to that distribution.
- // Compute a distribution for number of processes to processors.
- // Stores the processor id's into the distribution array argument.
- // Returns true if it worked, false if it didn't.
- static bool distribute_processes(uint length, uint* distribution);
// Binds the current process to a processor.
// Returns true if it worked, false if it didn't.
static bool bind_to_processor(uint processor_id);
// Give a name to the current thread.
--- 245,254 ----
*** 494,504 ****
static size_t current_stack_size();
static void verify_stack_alignment() PRODUCT_RETURN;
static bool message_box(const char* title, const char* message);
- static char* do_you_want_to_debug(const char* message);
// run cmd in a separate process and return its exit code; or -1 on failures
static int fork_and_exec(char *cmd, bool use_vfork_if_available = false);
// Call ::exit() on all platforms but Windows
--- 479,488 ----
*** 518,528 ****
// be called if something has gone badly wrong. CreateCoredumpOnCrash
// is intentionally not honored by this function.
static void die();
// File i/o operations
- static const int default_file_open_flags();
static int open(const char *path, int oflag, int mode);
static FILE* open(int fd, const char* mode);
static FILE* fopen(const char* path, const char* mode);
static int close(int fd);
static jlong lseek(int fd, jlong offset, int whence);
--- 502,511 ----
*** 666,678 ****
// Will return "Unknown error" for an unknown errno value.
// Will always return a valid string which is a static constant.
// Will not change the value of errno.
static const char* errno_name(int e);
- // Determines whether the calling process is being debugged by a user-mode debugger.
- static bool is_debugger_attached();
-
// wait for a key press if PauseAtExit is set
static void wait_for_keypress_at_exit(void);
// The following two functions are used by fatal error handler to trace
// native (C) frames. They are not part of frame.hpp/frame.cpp because
--- 649,658 ----
*** 964,977 ****
bool is_running() const {
return _state == SR_RUNNING;
}
- bool is_suspend_request() const {
- return _state == SR_SUSPEND_REQUEST;
- }
-
bool is_suspended() const {
return _state == SR_SUSPENDED;
}
};
#endif // !WINDOWS
--- 944,953 ----
< prev index next >