ReplayCompiles as non-develop switch ?
Thomas Stüfe
thomas.stuefe at gmail.com
Wed Aug 17 04:01:35 UTC 2022
On Tue, Aug 16, 2022 at 9:00 PM Vladimir Kozlov <vladimir.kozlov at oracle.com>
wrote:
> On 8/16/22 10:05 AM, Thomas Stüfe wrote:
> > Hi,
> >
> > Is there a particular reason why ReplayCompiles needs to be a develop
> switch? Or was it just not considered useful
> > without asserts?
>
> It replays compilation which we want to debug in debug VM. Why do you want
> it be `product` flag?
>
> We have DumpReplayDataOnError product flag to dump compiler replay data
> from product VM:
>
> https://github.com/openjdk/jdk/blob/master/src/hotspot/share/compiler/compiler_globals.hpp#L331
Hi Vladimir,
to reproduce a compiler error in a release VM.
- to experiment what its effect is on a VM that was actually shipped to
customers, without using a debug VM and switching tens of asserts off.
E.g., in the case of https://bugs.openjdk.org/browse/JDK-8291665, how steep
and how quickly RSS raises, and whether the raise limits itself or is
infinite.
- to see whether a certain build of a shipped VM is actually affected by a
certain bug. Not every bug surfaces in every build.
None of that are very hard reasons, and these situations are rare. But they
do occur, and it would be a bit more convenient to have this switch.
Cheers, Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-compiler-dev/attachments/20220817/350adaff/attachment.htm>
More information about the hotspot-compiler-dev
mailing list