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

Dean Long dlong at openjdk.org
Wed Aug 28 20:48:24 UTC 2024


On Wed, 28 Aug 2024 16:45:30 GMT, Vladimir Ivanov <vlivanov 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.
>
> Looks good.

Thanks @iwanowww.

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

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


More information about the hotspot-compiler-dev mailing list