RFR: 8335120: assert(!target->can_be_statically_bound() || target == cha_monomorphic_target) failed

Dean Long dlong at openjdk.org
Tue Aug 27 21:14:03 UTC 2024


On Tue, 27 Aug 2024 16:11:22 GMT, Dean Long <dlong at openjdk.org> wrote:

> The failing test uses class redefinition, which happen at safepoints.  Because JIT compiler threads do not block safepoints, compiler threads can sometimes see multiple versions of the same method.  The above assert can fail if target and cha_monomorphic_target are different versions of the same method.  The fix is to introduce ciMethod::equals to deal with this possibility.

@iwanowww , please review.

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

PR Comment: https://git.openjdk.org/jdk/pull/20730#issuecomment-2313522440


More information about the hotspot-compiler-dev mailing list