Skip to content

8339148: Make os::Linux::active_processor_count() public #3439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/hotspot/os/linux/os_linux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
static bool zero_page_read_protected() { return true; }

class Linux {
friend class CgroupSubsystem;
friend class os;
friend class OSContainer;
friend class TestReserveMemorySpecial;

static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *);
Expand All @@ -57,7 +55,6 @@ class Linux {
static int _page_size;

static julong available_memory();
static int active_processor_count();

static void initialize_system_info();

Expand Down Expand Up @@ -107,6 +104,7 @@ class Linux {
bool has_steal_ticks;
};

static int active_processor_count();
// which_logical_cpu=-1 returns accumulated ticks for all cpus.
static bool get_tick_information(CPUPerfTicks* pticks, int which_logical_cpu);
static bool _stack_is_executable;
Expand Down