Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

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 10, 2024
1 parent 22230b3 commit 98a63a8
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 @@ -594,17 +594,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 @@ -510,17 +510,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 @@ -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
}

//////////////////////////////////////////////////////////////////////////////
// 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 @@ -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());
Expand Down

1 comment on commit 98a63a8

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