On Thu, 24 Oct 2024 05:05:55 GMT, Alan Bateman <al...@openjdk.org> wrote:

> @iklam Would it be possible to comment on this? If the system properties to 
> configure the range of integer cache are set at runtime, does it just not use 
> this archived object graph? I'm wondering if it should disable CDS?

A better fix would be:

If runtime java.lang.Integer.IntegerCache.high < dumptime 
java.lang.Integer.IntegerCache.high
  -- copy the initial elements from the dumptime cache array
  -- fill the rest of the cache array

that way, we will still preserve the object identity of the Integers created 
during dump time.

I think we need to do the same thing for the other box cases.

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

PR Comment: https://git.openjdk.org/jdk/pull/21672#issuecomment-2434359711

Reply via email to