News for hackers. Stuff that matters.
Re:JVM Anatomy Quark #10: String.intern (2019) by vips7L on Wednesday June 22, 2022 @05:37PM (#31842176)
IIRC all of the concurrent GCs can dedupe now. Not just G1.

Hopefully soon object headers will be negligible with progress from Lilliput though.

Re:JVM Anatomy Quark #10: String.intern (2019) by hyperpape on Wednesday June 22, 2022 @05:56PM (#31842375)
Strings have an object header, an int for the hashcode and a pointer to the array. Assuming a < 32 GB heap (so 4 byte pointers), that's 24 bytes for the string, even once the array is deduped. Lilliput is awesome, but an 8 byte header would only reduce that to 16 bytes.