RFR: 7165755 OS Information much longer on linux than other platforms

Nils Loodin nils.loodin at oracle.com
Wed May 2 02:38:16 PDT 2012


When looking at the info from os::print_os_info() in 
src/os/linux/vm/os_linux.cpp:2024 (and other files for other platforms)
the length of the text is radically longer for linux than other platforms. 

This can make it hard for tool writers to get a summary that look good and similar for multiple platforms (sizing of gui fields, having to parse info in the tool code etc)

Lookin at the code, it's in some serious need of refactoring. It would be nice with a method to get a "brief" os info for these kinds of tools that looks similar on all platforms.

This is my suggested change: 
http://cr.openjdk.java.net/~nloodin/7165755/webrev.00/

Regards,
Nils Loodin


More information about the serviceability-dev mailing list