4 ms·
It's using a custom c++ hashtable: https://github.com/JetBrains/jdk8u_hotspot/blob/master/src/share/vm/classfile/symbolTable.hpp#L255 https://github.com/JetBra
by jakewins 9y ago
It's using a custom c++ hashtable:
https://github.com/JetBrains/jdk8u_hotspot/blob/master/src/share/vm/classfile/symbolTable.hpp#L255 https://github.com/JetBrains/jdk8u_hotspot/blob/master/src/s...
Interestingly, the hash table implementation it's subclassing has changed from `HashTable` to `RehashableHashtable` between JDK7 and JDK8, so I guess there's at least been work to try and improve the performance there.
The hashmap header is here, code lives in the matching cpp file in the same directory:
https://github.com/JetBrains/jdk8u_hotspot/blob/master/src/share/vm/utilities/hashtable.hpp#L277 https://github.com/JetBrains/jdk8u_hotspot/blob/master/src/s...
- pjmlp 9y agoThat is an implementation detail, there are many JVMs to choose from.