eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.27k stars 721 forks source link

Capture JIT build configuration in -version output #1021

Open andrewcraik opened 6 years ago

andrewcraik commented 6 years ago

The JIT compiler can currently built in 3 major configurations: debug, assertions, or production (names subject to revision). Capturing which of these configurations the JVM is running with in the -version output can be a significant aid to debugging performance and functional problems. There was a discussion on the OpenJ9 Slack general channel on 25 January 2018 discussing this topic. I believe the conclusion was that where the current version string has JIT enabled or JIT disabled we would like to enhance this to be more expressive. A suggestion of JIT enabled, JIT assertions, JIT debug, or JIT disabled was proposed and, I believe, achieved consensus acceptance by those participating in the discussion (@pshipton @DanHeidinga @mstoodle @andrewcraik). There may be further revisions, but this is to track the aspiration to capture this information, the discussion of the format, and any implementation required.

mstoodle commented 6 years ago

one question: does this need to be a JIT-centric configuration ?

andrewcraik commented 6 years ago

I don't necessarily think so personally, but others may have different views. My primary concern is the JIT since that is the area I work with most, but happy to hear opinions for those working more with the VM or GC.