Skip to content

Commit 12d060a

Browse files
committedSep 4, 2024
8339148: Make os::Linux::active_processor_count() public
Reviewed-by: dholmes, jwaters
1 parent 0cfd08f commit 12d060a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/hotspot/os/linux/os_linux.hpp

+1-3
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

3735
static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *);
3836
static int (*_pthread_setname_np)(pthread_t, const char*);
@@ -58,7 +56,6 @@ class os::Linux {
5856
static julong available_memory();
5957
static julong free_memory();
6058

61-
static int active_processor_count();
6259

6360
static void initialize_system_info();
6461

@@ -93,6 +90,7 @@ class os::Linux {
9390
bool has_steal_ticks;
9491
};
9592

93+
static int active_processor_count();
9694
static void kernel_version(long* major, long* minor);
9795

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

0 commit comments

Comments
 (0)
Please sign in to comment.