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.28k stars 721 forks source link

JIT inlining verbose option doesn't work well with multiple compilation threads #1741

Open mstoodle opened 6 years ago

mstoodle commented 6 years ago

When you use the option -Xjit:verbose=(compileStart|inlining|compileEnd) the output can be mixed across compilation threads and it's only by examining pointers (which in theory could overlap) that you can piece together what's happening. The output could be made easier for users to filter out the events that happened on particular threads (even if the various lines are still interleaved in the verbose log output).

fjeremic commented 6 years ago

Sounds like we need some sort of printing mutex?

mstoodle commented 6 years ago

There is a verbose log mutex, so first cut solution could certainly be to grab it before the inlining output begins and release it afterwards :) .