Integrated: 8267947: CI: Preserve consistency between has_subklass() and is_subclass_of()
Vladimir Ivanov
vlivanov at openjdk.java.net
Tue Jun 1 12:03:27 UTC 2021
On Mon, 31 May 2021 08:54:03 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
> CI caches `Klass::subklass() != NULL` query, but concurrent class loading can
> invalidate the cached value. Though recorded dependency won't let the nmethod
> to be installed, the inconcistency can manifest as type paradoxes until
> compilation is finished.
>
> The fix caches only `true` value (since it can't change unless class unloading
> takes place) and queries the VM otherwise.
>
> Testing:
> - [x] hs-tier1 - hs-tier6
This pull request has now been integrated.
Changeset: ffd28c4a
Author: Vladimir Ivanov <vlivanov at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/ffd28c4a86aa8e8e59afb13abd4aeeea66557f66
Stats: 39 lines in 2 files changed: 25 ins; 3 del; 11 mod
8267947: CI: Preserve consistency between has_subklass() and is_subclass_of()
Reviewed-by: thartmann, roland
-------------
PR: https://git.openjdk.java.net/jdk/pull/4269
More information about the hotspot-compiler-dev
mailing list