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

2025-02-24 Thread Calvin Cheung
On Mon, 24 Feb 2025 00:04:21 GMT, David Holmes wrote: >> 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 > > A couple of minor suggestions, but otherwise nothing fur

Re: RFR: 8280682: Refactor AOT code source validation checks [v6]

2025-02-24 Thread Ioi Lam
On Mon, 24 Feb 2025 18:43:27 GMT, Calvin Cheung wrote: >> 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 >> classLoaderEx

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

2025-02-24 Thread Calvin Cheung
On Sun, 23 Feb 2025 23:52:59 GMT, David Holmes wrote: >> 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 > > src/hotspot/share/cds/aotClassLocation.cpp line 53: > >

Re: RFR: 8280682: Refactor AOT code source validation checks [v6]

2025-02-24 Thread Calvin Cheung
> 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 bee

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

2025-02-23 Thread David Holmes
On Fri, 21 Feb 2025 06:19:55 GMT, Calvin Cheung wrote: >> 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 >> classLoaderEx

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

2025-02-21 Thread Vladimir Kozlov
On Fri, 21 Feb 2025 06:19:55 GMT, Calvin Cheung wrote: >> 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 >> classLoaderEx

Re: RFR: 8280682: Refactor AOT code source validation checks [v4]

2025-02-20 Thread Calvin Cheung
On Thu, 20 Feb 2025 00:35:51 GMT, Vladimir Kozlov wrote: > Passing by comment. We touched it on recent Leyden meeting. The name > "AOTCodeSource" is very confusing. Especially when we start caching AOT > compiled code. Can we rename it to avoid confusion? Per our discussions, I've renamed "AOT

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

2025-02-20 Thread Calvin Cheung
On Thu, 20 Feb 2025 07:29:07 GMT, David Holmes wrote: >> How about adding the vm_exit in >> `ClassLoaderDataShared::ensure_module_entry_table_exist()` instead of assert? >> >> >> void ClassLoaderDataShared::ensure_module_entry_table_exist(oop >> class_loader) { >> Handle h_loader(JavaThread

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

2025-02-20 Thread Calvin Cheung
> 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 bee

Re: RFR: 8280682: Refactor AOT code source validation checks [v4]

2025-02-19 Thread David Holmes
On Thu, 20 Feb 2025 07:11:19 GMT, Calvin Cheung wrote: >> I don't see anything there that does a vm_exit if something has gone wrong. >> ?? > > How about adding the vm_exit in > `ClassLoaderDataShared::ensure_module_entry_table_exist()` instead of assert? > > > void ClassLoaderDataShared::ens

Re: RFR: 8280682: Refactor AOT code source validation checks [v4]

2025-02-19 Thread Calvin Cheung
On Thu, 20 Feb 2025 02:15:01 GMT, David Holmes wrote: >> It is now being handled in >> `ClassLoaderDataShared::ensure_module_entry_tables_exist()` and >> `AOTCodeSourceConfig::dumptime_init_helper()`. > > I don't see anything there that does a vm_exit if something has gone wrong. ?? How about

Re: RFR: 8280682: Refactor AOT code source validation checks [v4]

2025-02-19 Thread David Holmes
On Wed, 19 Feb 2025 22:37:48 GMT, Calvin Cheung wrote: >> src/hotspot/share/runtime/threads.cpp line 809: >> >>> 807: >>> vm_exit_during_initialization("ClassLoader::initialize_module_path() failed >>> unexpectedly"); >>> 808: } >>> 809: #endif >> >> Not obvious where this functionality

Re: RFR: 8280682: Refactor AOT code source validation checks [v4]

2025-02-19 Thread Calvin Cheung
> 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 bee

Re: RFR: 8280682: Refactor AOT code source validation checks [v4]

2025-02-19 Thread Vladimir Kozlov
On Thu, 20 Feb 2025 00:18:36 GMT, Calvin Cheung wrote: >> 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 >> classLoaderEx

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-19 Thread Calvin Cheung
On Wed, 19 Feb 2025 22:37:57 GMT, Calvin Cheung wrote: >> test/hotspot/jtreg/runtime/cds/appcds/BootClassPathMismatch.java line 243: >> >>> 241: * No error - bootclasspath can be appended during runtime if no >>> -cp is specified. >>> 242: */ >>> 243: public void testBootClassPath

Re: RFR: 8280682: Refactor AOT code source validation checks [v3]

2025-02-19 Thread Calvin Cheung
On Tue, 18 Feb 2025 07:22:00 GMT, David Holmes wrote: >> Calvin Cheung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> @ashu-mehra and @dholmes-ora comments > > src/hotspot/share/runtime/threads.cpp line 809: > >> 807: >> vm_exit_d

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-19 Thread Calvin Cheung
On Tue, 18 Feb 2025 05:21:09 GMT, Ashutosh Mehra wrote: >> Calvin Cheung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> @iklam and @ashu-mehra comment > > src/hotspot/share/runtime/threads.cpp line 27: > >> 25: */ >> 26: >> 27: #incl

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-19 Thread Calvin Cheung
On Tue, 18 Feb 2025 07:08:07 GMT, David Holmes wrote: >> Calvin Cheung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> @iklam and @ashu-mehra comment > > src/hotspot/share/cds/aotCodeSource.cpp line 2: > >> 1: /* >> 2: * Copyright (c)

Re: RFR: 8280682: Refactor AOT code source validation checks [v3]

2025-02-19 Thread Calvin Cheung
> 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 bee

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-17 Thread David Holmes
On Fri, 14 Feb 2025 19:21:32 GMT, Calvin Cheung wrote: >> 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 >> classLoaderEx

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-17 Thread Ashutosh Mehra
On Fri, 14 Feb 2025 19:21:32 GMT, Calvin Cheung wrote: >> 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 >> classLoaderEx

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-14 Thread Calvin Cheung
On Thu, 13 Feb 2025 03:55:50 GMT, Ashutosh Mehra wrote: >> Calvin Cheung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> @iklam and @ashu-mehra comment > > src/hotspot/share/cds/aotCodeSource.cpp line 762: > >> 760: } >> 761: >> 762:

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-14 Thread Calvin Cheung
On Tue, 11 Feb 2025 05:25:30 GMT, Ioi Lam wrote: >> Calvin Cheung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> @iklam and @ashu-mehra comment > > src/hotspot/share/cds/aotCodeSource.cpp line 133: > >> 131: >> 132: // AllCodeSourceSt

Re: RFR: 8280682: Refactor AOT code source validation checks [v2]

2025-02-14 Thread Calvin Cheung
> 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 bee

Re: RFR: 8280682: Refactor AOT code source validation checks

2025-02-12 Thread Ashutosh Mehra
On Wed, 5 Feb 2025 22:32:58 GMT, Calvin Cheung wrote: > 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|

Re: RFR: 8280682: Refactor AOT code source validation checks

2025-02-10 Thread Ioi Lam
On Wed, 5 Feb 2025 22:32:58 GMT, Calvin Cheung wrote: > 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|

RFR: 8280682: Refactor AOT code source validation checks

2025-02-07 Thread Calvin Cheung
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 remov