8202435: [aix] print program break as part of memory info into hs-err file
Reviewed-by: mdoerr, dholmes
--- a/src/hotspot/os/aix/os_aix.cpp Sat May 05 18:55:31 2018 +0200
+++ b/src/hotspot/os/aix/os_aix.cpp Thu May 03 17:10:39 2018 +0200
@@ -1459,6 +1459,7 @@
const char* const aixthread_guardpages = ::getenv("AIXTHREAD_GUARDPAGES");
st->print_cr(" AIXTHREAD_GUARDPAGES=%s.",
aixthread_guardpages ? aixthread_guardpages : "<unset>");
+ st->cr();
os::Aix::meminfo_t mi;
if (os::Aix::get_meminfo(&mi)) {
@@ -1481,6 +1482,16 @@
}
st->cr();
+ // Print program break.
+ st->print_cr("Program break at VM startup: " PTR_FORMAT ".", p2i(g_brk_at_startup));
+ address brk_now = (address)::sbrk(0);
+ if (brk_now != (address)-1) {
+ st->print_cr("Program break now : " PTR_FORMAT " (distance: " SIZE_FORMAT "k).",
+ p2i(brk_now), (size_t)((brk_now - g_brk_at_startup) / K));
+ }
+ st->print_cr("MaxExpectedDataSegmentSize : " SIZE_FORMAT "k.", MaxExpectedDataSegmentSize / K);
+ st->cr();
+
// Print segments allocated with os::reserve_memory.
st->print_cr("internal virtual memory regions used by vm:");
vmembk_print_on(st);