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

Richard Reingruber rrich at openjdk.org
Thu Oct 20 20:55:12 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"

Richard Reingruber has updated the pull request incrementally with one additional commit since the last revision:

  Skip all test cases if StressReflectiveCode is enabled

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10769/files
  - new: https://git.openjdk.org/jdk/pull/10769/files/9071e5b4..c8c346f8

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10769&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10769&range=00-01

  Stats: 16 lines in 1 file changed: 15 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