Skip to content

Commit bc269de

Browse files
committed
8339148: Make os::Linux::active_processor_count() public
Backport-of: 12d060a255b9b783488714c6c2cb73a899d3f708
1 parent 0f6ee76 commit bc269de

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hotspot/os/linux/os_linux.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
// os::Linux defines the interface to Linux operating systems
3131

3232
class os::Linux {
33-
friend class CgroupSubsystem;
3433
friend class os;
35-
friend class OSContainer;
3634
friend class TestReserveMemorySpecial;
3735

3836
static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *);
@@ -59,7 +57,6 @@ class os::Linux {
5957
static julong available_memory();
6058
static julong free_memory();
6159

62-
static int active_processor_count();
6360

6461
static void initialize_system_info();
6562

@@ -109,6 +106,7 @@ class os::Linux {
109106
bool has_steal_ticks;
110107
};
111108

109+
static int active_processor_count();
112110
static void kernel_version(long* major, long* minor);
113111

114112
// which_logical_cpu=-1 returns accumulated ticks for all cpus.

0 commit comments

Comments
 (0)