RFR: 8340141: C1: rework ciMethod::equals following 8338471 [v2]
Vladimir Ivanov
vlivanov at openjdk.org
Wed Oct 9 21:20:18 UTC 2024
On Tue, 8 Oct 2024 20:30:34 GMT, Dean Long <dlong at openjdk.org> wrote:
>> This PR changes ciMethod::equals() to a special-purpose debug helper method for the one place in C1 that uses it in an assert. The reason why making it general purpose is difficult is because JVMTI can add and delete methods. See the bug report and JDK-8338471 for more details. I'm open to suggestions for a better name than equals_ignore_version().
>>
>> An alternative approach, which I think may actually be better, would be to check for old methods first, and bail out if we see any. Then we can change the assert back to how it was originally, using ==.
>
> Dean Long has updated the pull request incrementally with one additional commit since the last revision:
>
> simplification based on reviewer comments
src/hotspot/share/ci/ciMethod.cpp line 692:
> 690:
> 691: // Redefinition support.
> 692: if (this->get_Method()->is_old() || root_m->get_Method()->is_old()) {
Is it safe to access raw `Method*` from a compiler thread which is not in VM state?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21148#discussion_r1794240981
More information about the hotspot-compiler-dev
mailing list