RFR: 8280682: Refactor AOT code source validation checks [v5]

Calvin Cheung ccheung at openjdk.org
Fri Feb 21 06:19:55 UTC 2025


> This changset refactors CDS class paths and module paths validation code into a new class `AOTCodeSource` and related class `AOTCodeSourceConfig`. Code has been moved from filemap.[c|h]pp, classLoader.[c|h]pp, and classLoaderExt.[c|h]pp to aotCodeSource.[c|h]pp. CDS dependencies have been removed from `classLoader.cpp`. More refactoring could be done, such as removing `classLoaderExt.cpp`, in a future RFE.
> 
> Passed tiers 1 - 5 testing.

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  rename classes and add vm_exit_during_initialization call

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23476/files
  - new: https://git.openjdk.org/jdk/pull/23476/files/c2039929..9e4e33dd

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23476&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23476&range=03-04

  Stats: 2603 lines in 15 files changed: 1268 ins; 1261 del; 74 mod
  Patch: https://git.openjdk.org/jdk/pull/23476.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23476/head:pull/23476

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


More information about the hotspot-dev mailing list