Skip to content

Commit

Permalink
8328589: unify os::breakpoint among posix platforms
Browse files Browse the repository at this point in the history
Backport-of: 93d1700f23d42cb35b6028c5d7d029c035711acf
  • Loading branch information
MBaesken committed Apr 15, 2024
1 parent 807f21d commit eec41a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 33 deletions.
11 changes: 0 additions & 11 deletions src/hotspot/os/aix/os_aix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,17 +590,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.
Expand Down
11 changes: 0 additions & 11 deletions src/hotspot/os/bsd/os_bsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,17 +506,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

Expand Down
11 changes: 0 additions & 11 deletions src/hotspot/os/linux/os_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,17 +584,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

Expand Down
11 changes: 11 additions & 0 deletions src/hotspot/os/posix/os_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,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());
Expand Down

1 comment on commit eec41a4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.