Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
The current code is expensive, since it is based on the member fields and is recomputed every time. It also uses the sum of several small integers weighted equally.
Suggested improvements:
compute the value lazily and cache it for further use
assign different weights to boolean and numeric components, especially those likely to be small integers like waitedCount and threadId.
explicitly invoke the hashCode() for string components.
@keithc-ca you know much more about this than I do: your suggestions are welcome.
The current code is expensive, since it is based on the member fields and is recomputed every time. It also uses the sum of several small integers weighted equally.
Suggested improvements:
waitedCount
andthreadId
.@keithc-ca you know much more about this than I do: your suggestions are welcome.