RFR: 8295413: com/sun/jdi/EATests.java fails with compiler flag -XX:+StressReflectiveCode

Richard Reingruber rrich at openjdk.org
Thu Oct 20 19:36:33 UTC 2022


With `StressReflectiveCode` C2 has inexact type information which can prevent ea
based optimizations (see `ConnectionGraph::add_call_node()`)

This pr changes the test jdk/com/sun/jdi/EATests.java to read the flag
`StressReflectiveCode`. If enabled it shall neither expect ea based optimizations
of allocations nor deoptimization of corresponding frames upon debugger access.

Tested on the standard platforms with fastdebug and release builds.


make test TEST=test/jdk/com/sun/jdi/EATests.java TEST_VM_OPTS="-XX:+IgnoreUnrecognizedVMOptions -XX:+StressReflectiveCode"

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

Commit messages:
 - Adapt test to -XX:+StressReflectiveCode

Changes: https://git.openjdk.org/jdk/pull/10769/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10769&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295413
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/10769.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10769/head:pull/10769

PR: https://git.openjdk.org/jdk/pull/10769


More information about the serviceability-dev mailing list