[jdk17u-dev] RFR: 8271506: Add ResourceHashtable support for deleting selected entries
Goetz Lindenmaier
goetz at openjdk.java.net
Mon Jan 31 13:34:14 UTC 2022
On Mon, 31 Jan 2022 12:59:30 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> I backport this as prerequisite to JDK-8274944 which calls the new method unlink().
>>
>> I had to adapt the code to work in jdk17 because ""JDK-8269004: Implement ResizableResourceHashtable" is missing in 17.
>
> src/hotspot/share/utilities/resourceHash.hpp line 203:
>
>> 201: // the entry is deleted.
>> 202: template<class ITER>
>> 203: void unlink(ITER* iter) const {
>
> Seems very weird to have this as a const method. It clearly modifies the table. Mainline version is not const, why here?
Copy and paste error ... will fix.
-------------
PR: https://git.openjdk.java.net/jdk17u-dev/pull/132
More information about the jdk-updates-dev
mailing list