This RFE is filed primarily to improve testability, and also reporting. It was discussed with interested parties in the Runtime team (Coleen, Ioi, Harold and Christian), and agreed upon.
Background:
There is a class of use cases where Xshare:auto is used, and sharing is not possible (e.g. OS limitations); in such cases JVM defaults to not sharing and continues on.
However, there is no testable assertion for such situations, because:
- when sharing succeeds, the keyword "sharing" is printed in the version info, and tests assert on the presence of this keyword
- when sharing fails, "sharing" is not printed.
That is, JVM does not produce output stating the ATTEMPT of using a shared archive; it indicates only whether either sharing was in use, or not, but not whether it was attempted.
The output will ONLY be VISIBLE when -XX:+Verbose and -XX:+PrintMiscellaneous are in use.
Background:
There is a class of use cases where Xshare:auto is used, and sharing is not possible (e.g. OS limitations); in such cases JVM defaults to not sharing and continues on.
However, there is no testable assertion for such situations, because:
- when sharing succeeds, the keyword "sharing" is printed in the version info, and tests assert on the presence of this keyword
- when sharing fails, "sharing" is not printed.
That is, JVM does not produce output stating the ATTEMPT of using a shared archive; it indicates only whether either sharing was in use, or not, but not whether it was attempted.
The output will ONLY be VISIBLE when -XX:+Verbose and -XX:+PrintMiscellaneous are in use.