What's the purpose of hashtable::reverse()

Mikael Gerdin mikael.gerdin at oracle.com
Thu Mar 16 09:17:19 UTC 2017


Hi Ioi,

I found this old bug where I think the reversing was added:
https://bugs.openjdk.java.net/browse/JDK-4994483

/Mikael

On 2017-03-16 07:48, Ioi Lam wrote:
> This seems to be used only by CDS dumping, and if I remove the call
> nothing bad seems to happen. Does anyone know what hashtable::reverse()
> could possibly achieve?
>
> Also, there's another variant that seems to be dead code that no one calls.
>
>     template <class T, MEMFLAGS F> void Hashtable<T, F>::reverse(void*
> boundary)
>
> - Ioi
>
>


More information about the hotspot-dev mailing list