RFR: 8257726: Make -XX:+StressLdcRewrite option a diagnostic option

Daniel D.Daugherty dcubed at openjdk.java.net
Tue Dec 15 23:43:54 UTC 2020


On Tue, 15 Dec 2020 17:26:25 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> See bug for details.  Tested:
> 
> $ java -XX:+StressLdcRewrite -version
> Error: VM option 'StressLdcRewrite' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
> Error: The unlock option must precede 'StressLdcRewrite'.
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> $ java -XX:+UnlockDiagnosticVMOptions -XX:+StressLdcRewrite -version
> openjdk version "16-internal" 2021-03-16
> OpenJDK Runtime Environment (build 16-internal+0-2020-12-15-1356558.coleen...)
> OpenJDK 64-Bit Server VM (build 16-internal+0-2020-12-15-1356558.coleen..., mixed mode, sharing)
> 
> Also, java/lang/instrument which has a test using StressLdcRewrite and tier1.

Thumbs up!

-------------

Marked as reviewed by dcubed (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/1783


More information about the serviceability-dev mailing list