RFR: 8319447: Improve performance of delayed task handling [v13]

Alan Bateman alanb at openjdk.org
Thu Mar 27 13:30:19 UTC 2025


On Thu, 27 Mar 2025 09:06:40 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> Arguably better, but not sure it is worth regenerating diffs for? (An int was used for the same reason as in FJT.getQueueSize  -- they need to be valid array bounds. Which might someday allow long, but if so many things would change.)
>
> Personally I think it's worth it. @AlanBateman, what do you think?

Right now it's hard to envisage needing to have >2B delayed tasks queued. Maybe in a few years we might regret this. So maybe better to change it to return long, I re-generate API diffs easily.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23702#discussion_r2016584337


More information about the core-libs-dev mailing list