On Tue, 1 Dec 2026 18:51:54 GMT, Ioi Lam <[email protected]> wrote:

> `Arguments::system_properties()` is a hand-written linked list that's 
> difficult to use and error prone. It should be replaced with a 
> `GrowableArray`.
> 
> This will also facilitate the fix for 
> [JDK-8382093](https://bugs.openjdk.org/browse/JDK-8382093), which needs a new 
> "delete" operation on the system properties list.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

It looks like things could be cleaner by using range-based for loops:

  for (SystemProperty* sp = *Arguments::system_properties()) {

instead of:

  for (GrowableArrayIterator<SystemProperty*> it = 
Arguments::system_properties()->begin();
       it != Arguments::system_properties()->end(); ++it) {
    SystemProperty* sp = *it;

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

PR Review: https://git.openjdk.org/jdk/pull/34167#pullrequestreview-6148005553

Reply via email to