changeset 57461:167aa1833ab2

8235671: enhance print_rlimit_info in os_posix Reviewed-by: clanger, mdoerr
author mbaesken
date Tue, 10 Dec 2019 16:55:14 +0100
parents 359553a04f66
children 44ea394fd415
files src/hotspot/os/posix/os_posix.cpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/posix/os_posix.cpp	Mon Dec 16 21:24:00 2019 -0800
+++ b/src/hotspot/os/posix/os_posix.cpp	Tue Dec 10 16:55:14 2019 +0100
@@ -419,6 +419,10 @@
 #if defined(AIX)
   st->print(", NPROC ");
   st->print("%d", sysconf(_SC_CHILD_MAX));
+  st->print(", THREADS ");
+  getrlimit(RLIMIT_THREADS, &rlim);
+  if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
+  else st->print(UINT64_FORMAT, uint64_t(rlim.rlim_cur));
 #elif !defined(SOLARIS)
   st->print(", NPROC ");
   getrlimit(RLIMIT_NPROC, &rlim);
@@ -436,6 +440,11 @@
   if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
   else st->print(UINT64_FORMAT "k", uint64_t(rlim.rlim_cur) / 1024);
 
+  st->print(", CPU ");
+  getrlimit(RLIMIT_CPU, &rlim);
+  if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
+  else st->print(UINT64_FORMAT, uint64_t(rlim.rlim_cur));
+
   st->print(", DATA ");
   getrlimit(RLIMIT_DATA, &rlim);
   if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");