From bdc072e31044c8e03446eaf5e3504f2d557221aa Mon Sep 17 00:00:00 2001 From: Goetz Lindenmaier Date: Mon, 31 Mar 2025 16:06:34 +0200 Subject: [PATCH] Backport 12d060a255b9b783488714c6c2cb73a899d3f708 --- src/hotspot/os/linux/os_linux.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hotspot/os/linux/os_linux.hpp b/src/hotspot/os/linux/os_linux.hpp index 029f2aa7a52..49f2777d139 100644 --- a/src/hotspot/os/linux/os_linux.hpp +++ b/src/hotspot/os/linux/os_linux.hpp @@ -30,9 +30,7 @@ // os::Linux defines the interface to Linux operating systems class os::Linux { - friend class CgroupSubsystem; friend class os; - friend class OSContainer; friend class TestReserveMemorySpecial; static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *); @@ -59,7 +57,6 @@ class os::Linux { static julong available_memory(); static julong free_memory(); - static int active_processor_count(); static void initialize_system_info(); @@ -109,6 +106,7 @@ class os::Linux { bool has_steal_ticks; }; + static int active_processor_count(); static void kernel_version(long* major, long* minor); // which_logical_cpu=-1 returns accumulated ticks for all cpus.