Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8269678: Remove unimplemented and unused os::bind_to_processor()
Reviewed-by: dcubed
  • Loading branch information
zhengyu123 committed Jun 30, 2021
1 parent 83bce94 commit 5c08344
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions src/hotspot/os/aix/os_aix.cpp
Expand Up @@ -2512,11 +2512,6 @@ void os::set_native_thread_name(const char *name) {
return;
}

bool os::bind_to_processor(uint processor_id) {
// Not yet implemented.
return false;
}

////////////////////////////////////////////////////////////////////////////////
// debug support

Expand Down
5 changes: 0 additions & 5 deletions src/hotspot/os/bsd/os_bsd.cpp
Expand Up @@ -2165,11 +2165,6 @@ void os::set_native_thread_name(const char *name) {
#endif
}

bool os::bind_to_processor(uint processor_id) {
// Not yet implemented.
return false;
}

////////////////////////////////////////////////////////////////////////////////
// debug support

Expand Down
5 changes: 0 additions & 5 deletions src/hotspot/os/linux/os_linux.cpp
Expand Up @@ -4785,11 +4785,6 @@ void os::set_native_thread_name(const char *name) {
}
}

bool os::bind_to_processor(uint processor_id) {
// Not yet implemented.
return false;
}

////////////////////////////////////////////////////////////////////////////////
// debug support

Expand Down
5 changes: 0 additions & 5 deletions src/hotspot/os/windows/os_windows.cpp
Expand Up @@ -971,11 +971,6 @@ void os::set_native_thread_name(const char *name) {
} __except(EXCEPTION_EXECUTE_HANDLER) {}
}

bool os::bind_to_processor(uint processor_id) {
// Not yet implemented.
return false;
}

void os::win32::initialize_performance_counter() {
LARGE_INTEGER count;
QueryPerformanceFrequency(&count);
Expand Down
4 changes: 0 additions & 4 deletions src/hotspot/share/runtime/os.hpp
Expand Up @@ -278,10 +278,6 @@ class os: AllStatic {
return _initial_active_processor_count;
}

// 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.
static void set_native_thread_name(const char *name);

Expand Down

1 comment on commit 5c08344

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