This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
java.vm.info
- To: "java-discuss at sourceware dot cygnus dot com" <java-discuss at sourceware dot cygnus dot com>
- Subject: java.vm.info
- From: David Brownell <mojojojo at pacbell dot net>
- Date: Thu, 16 Dec 1999 11:45:28 -0800
This is question, with at least one associated RFE.
I have a testing harness which I use to test some Java software.
One of the things it does is report the environment under which
the test is run ... by returning the "java.vm.info" system property.
On Sun's JVMs this returns string descriptions like:
"Classic JVM (build 1.2.2-I, native threads, javacomp)"
Such information is important for tracking JVM issues.
I'd like to see libgcj provide corresponding information, ideally
through that same system property API. That's the RFE. Based on
the response I get to the question (next) I could probably provide
a patch of some kind myself.
Meantime, I'd like to get the info myself and stick it into that
system property. The question: How I do get enough of the info?
The closest I can now come is "gcj -v 2>&1 | tail -1" to get:
"gcc version 2.96 1991201 (experimental)"
That doesn't provide Java runtime info -- like the version of
libgcj in use, whether POSIX threads are configured, or any
other relevant info (whether SJLJ or table based exceptions
are configured, etc).
Got any suggestions on how to get that runtime info?
- Dave