RFR: 8290812: Add a test for ResourceHashtable [v3]

Coleen Phillimore coleenp at openjdk.org
Fri Jul 22 11:59:00 UTC 2022


On Fri, 22 Jul 2022 01:06:07 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> I added a test for ResourceHashtable to show the interactions with it and Symbol* refcounting.
>> Tested with tier1 on Oracle platforms.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Clarify the do_entry functions in two deleter classes.

Hi Thomas, yes, I was trying to show that when the Value is copied into the ResourceHashtable node, it's destructor is called.  When it's a pointer, it's destructor is not called and you have to call delete(or needed cleanup) in the do_entry function or outside the remove call.

-------------

PR: https://git.openjdk.org/jdk/pull/9603


More information about the hotspot-dev mailing list