8328589: unify os::breakpoint among posix platforms

Reviewed-by: lucy, asteiner, dholmes
This commit is contained in:
Matthias Baesken 2024-03-21 08:16:50 +00:00
parent a5a2eca155
commit 93d1700f23
4 changed files with 11 additions and 33 deletions

View File

@ -621,17 +621,6 @@ void os::init_system_properties_values() {
#undef EXTENSIONS_DIR
}
////////////////////////////////////////////////////////////////////////////////
// breakpoint support
void os::breakpoint() {
BREAKPOINT;
}
extern "C" void breakpoint() {
// use debugger to set breakpoint here
}
// retrieve memory information.
// Returns false if something went wrong;
// content of pmi undefined in this case.

View File

@ -535,17 +535,6 @@ void os::init_system_properties_values() {
#undef EXTENSIONS_DIR
}
////////////////////////////////////////////////////////////////////////////////
// breakpoint support
void os::breakpoint() {
BREAKPOINT;
}
extern "C" void breakpoint() {
// use debugger to set breakpoint here
}
//////////////////////////////////////////////////////////////////////////////
// create new thread

View File

@ -640,17 +640,6 @@ void os::init_system_properties_values() {
#undef EXTENSIONS_DIR
}
////////////////////////////////////////////////////////////////////////////////
// breakpoint support
void os::breakpoint() {
BREAKPOINT;
}
extern "C" void breakpoint() {
// use debugger to set breakpoint here
}
//////////////////////////////////////////////////////////////////////////////
// detecting pthread library

View File

@ -187,6 +187,17 @@ size_t os::lasterror(char *buf, size_t len) {
return n;
}
////////////////////////////////////////////////////////////////////////////////
// breakpoint support
void os::breakpoint() {
BREAKPOINT;
}
extern "C" void breakpoint() {
// use debugger to set breakpoint here
}
// Return true if user is running as root.
bool os::have_special_privileges() {
static bool privileges = (getuid() != geteuid()) || (getgid() != getegid());