RFR: 8260630: Templatize literal_size
Kim Barrett
kbarrett at openjdk.java.net
Fri Jan 29 14:34:46 UTC 2021
On Fri, 29 Jan 2021 14:02:12 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> Please review a couple of small cleanups in Hashtable support.
>>
>> (1) Replace some "default" overloads for literal_size with a template. This
>> makes it easier to add new Hashtable value types whose sizes aren't
>> interesting for statistics printout.
>>
>> (2) Trivial change to remove no longer used instantiation of Hashtable
>> support for oop values.
>>
>> Testing:
>> mach5 tier1
>
> src/hotspot/share/utilities/hashtable.cpp line 120:
>
>> 118: }
>> 119:
>> 120: static int literal_size(oop obj) {
>
> Is literal_size(oop) still needed?
It's used by literal_size(WeakHandle).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2310
More information about the hotspot-dev
mailing list