< prev index next >

src/hotspot/os/aix/os_aix.cpp

Print this page
rev 49972 : [mq]: 8202435-aix-print-program-break

@@ -1457,10 +1457,11 @@
  
    // Print out AIXTHREAD_GUARDPAGES because it affects the size of pthread stacks.
    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)) {
      if (os::Aix::on_aix()) {
        st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);

@@ -1477,10 +1478,20 @@
        st->print_cr("system asp total   : " SIZE_FORMAT, mi.pgsp_total);
        st->print_cr("%% system asp used : %.2f",
          mi.pgsp_total ? (100.0f * (mi.pgsp_total - mi.pgsp_free) / mi.pgsp_total) : -1.0f);
      }
    }
+   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);
< prev index next >