<i18n dev> RFR: 8358520: Improve lazy computation in BreakIteratorResourceBundle and related classes

Justin Lu jlu at openjdk.org
Thu Jun 5 20:33:50 UTC 2025


On Tue, 3 Jun 2025 20:14:31 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> This PR proposes to simplify lazy computation related to resource bundles. Previously, some objects were computed lazily using a double-checked locking algorithm. StableValues offers a more robust and succinct solution. 
>  
>  
> This PR passes tier1, tier2, and tier3 on multiple platforms.

Should we consider converting `lookup` in ParallelListResourceBundle.java to be a stable supplier of the CHM as well? Then separating the creation of the map from the insertion of parallel data.

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

PR Comment: https://git.openjdk.org/jdk/pull/25630#issuecomment-2946104521


More information about the i18n-dev mailing list