< prev index next >

src/hotspot/os/linux/os_linux.cpp

Print this page
rev 51830 : 8210964: add more ld preloading info to hs_error file on Linux

*** 1973,1982 **** --- 1973,1984 ---- os::Linux::print_full_memory_info(st); os::Linux::print_proc_sys_info(st); + os::Linux::print_system_config_info(st); + os::Linux::print_container_info(st); } // Try to identify popular distros. // Most Linux distributions have a /etc/XXX-release file, which contains
*** 2131,2140 **** --- 2133,2151 ---- st->print("\n/proc/meminfo:\n"); _print_ascii_file("/proc/meminfo", st); st->cr(); } + void os::Linux::print_system_config_info(outputStream* st) { + st->cr(); + st->print_cr("/etc/ld.so.preload (system-wide LD_PRELOAD config file):"); + bool file_present = _print_ascii_file("/etc/ld.so.preload", st); + if (!file_present) { st->print("file not present"); } + st->cr(); + st->cr(); + } + void os::Linux::print_container_info(outputStream* st) { if (!OSContainer::is_containerized()) { return; }
< prev index next >