Description
I understand that every JVM implementation has different options, and that each one of them may or may not add compatibility for every option that any other JVM has, aside from the standard ones that are reglamentary, like -help.
That being said, I'd like to know if Eclipse OpenJ9 has support for using the -XX:hashCode option, and if that's the case, what could be causing the JVM to not preserve hash codes between different executions of a program.
I admit my scenario it's quite odd, as I use this option to mantain consistency of the output from Object#hashCode between executions of a determined program, being able to store the results for later use.
Hotspot JVM outputs the desired results, as expected, but Eclipse J9's won't mantaint consistency between executions.
I've already read the docs, but they don't mention anything about -XX:hashCode. I went searching into the source code hosted in this repo, trying to find something about this, with no success.
Also I've alredy added some additional java options to ensure -XX:hashCode isn't being ignored by the JVM, being those:
-XX:hashCode=2 -XX:+PositiveIdentityHash -XX:-IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
Is Eclipse OpenJ9 able to reproduce Hotspot JVM behavior? Or am I searching something unfindable?