Integrated: 8293044: C1: Missing access check on non-accessible class

Vladimir Ivanov vlivanov at openjdk.org
Fri Sep 9 20:52:28 UTC 2022


On Thu, 8 Sep 2022 17:12:36 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> C1 erroneously omits some access checks on symbolically referenced classes.
> 
> Proposed fix relies on code patching to throw proper resolution error when required.
> 
> Also, to avoid repeated recompilations on platforms which don't support code
> patching, the nmethod is not marked as non-entrant when corresponding constant
> pool entry is in error state.
> 
> Testing: hs-tier1 - hs-tier4

This pull request has now been integrated.

Changeset: 005b49bb
Author:    Vladimir Ivanov <vlivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/005b49bb78a468d4e372e6f5fa48bb0db4fd73c2
Stats:     250 lines in 8 files changed: 233 ins; 6 del; 11 mod

8293044: C1: Missing access check on non-accessible class

Reviewed-by: thartmann, dlong

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

PR: https://git.openjdk.org/jdk/pull/10222


More information about the hotspot-compiler-dev mailing list