RFR: 8351595: JVM_FindClassFromCaller: unused var may be removed

Alan Bateman alanb at openjdk.org
Fri Oct 10 10:28:44 UTC 2025


On Thu, 9 Oct 2025 18:29:36 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> Trivial change to remove an unused line of code. Verified with tier1-5 tests.

Just to add to Chen and David's comments and to give more context. JEP 486 was a huge change. To keep things manageable the proposal/agreement was to keep the changes to src/hotspot as minimal as possible.  The callout to checkPackageAccess from the dictionary code and the inherited ACC has to be removed, but that was mostly it. Coleen followed up quickly with a huge removal of the ProtectionDomain code. For JVM_FindClassFromCaller, a non-null caller would have been used to get its PD. Not needed now so it does look like another pass is needed to do further removal/cleanup.

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

PR Comment: https://git.openjdk.org/jdk/pull/27735#issuecomment-3389253467


More information about the hotspot-dev mailing list