Skip to content

Commit 98f87f6

Browse files
committed
8339148: Make os::Linux::active_processor_count() public
Backport-of: bc269de452ba2c6072529c3201059b2039210238
1 parent b7a846d commit 98f87f6

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
@@ -31,9 +31,7 @@
3131
static bool zero_page_read_protected() { return true; }
3232

3333
class Linux {
34-
friend class CgroupSubsystem;
3534
friend class os;
36-
friend class OSContainer;
3735
friend class TestReserveMemorySpecial;
3836

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

5957
static julong available_memory();
60-
static int active_processor_count();
6158

6259
static void initialize_system_info();
6360

@@ -107,6 +104,7 @@ class Linux {
107104
bool has_steal_ticks;
108105
};
109106

107+
static int active_processor_count();
110108
// which_logical_cpu=-1 returns accumulated ticks for all cpus.
111109
static bool get_tick_information(CPUPerfTicks* pticks, int which_logical_cpu);
112110
static bool _stack_is_executable;

0 commit comments

Comments
 (0)