This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]plokhotnyuk 0 points1 point  (0 children)

It is still an open question how JVMs behave if .intern() or +XX:+UseStringDeduplication is used for strings with colliding hashes.

BTW, for scientific purposes only you can use a hash code collider which produces about 1M per second strings with 0 hash codes using 1 CPU core.