RFR: 8375580: Avoid using ArrayDeque in jdk.internal.loader.URLClassPath

Chen Liang liach at openjdk.org
Mon Jan 19 17:45:00 UTC 2026


On Sun, 18 Jan 2026 09:48:55 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:

>> src/java.base/share/classes/jdk/internal/loader/URLClassPath.java line 107:
>> 
>>> 105: 
>>> 106:     /* A list of loader-discovered URLs, if any */
>>> 107:     private ArrayList<URL> loaderPath;
>> 
>> Document these three variables' accesses are guarded by monitor on `path`.
>> 
>> In addition, this is probably more accurately called `dfsUrls`, because they are paths waiting for expansion from a DFS.
>
>> Document these three variables' accesses are guarded by monitor on `path`.
> 
> Thanks, see above.
> 
>> In addition, this is probably more accurately called `dfsUrls`, because they are paths waiting for expansion from a DFS.
> 
> Excuse my ignorance, what do you mean by 'DFS' in this context?

Depth-first search.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29288#discussion_r2702504594


More information about the core-libs-dev mailing list