[jdk18] RFR: 8273107: RunThese24H times out with "java.lang.management.ThreadInfo.getLockName()" is null

Coleen Phillimore coleenp at openjdk.java.net
Wed Dec 15 14:06:02 UTC 2021


On Wed, 15 Dec 2021 04:06:14 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> See L71 below:   _ptrs->unlink(&cleanup);  // cleanup the LinkedLists
>> That passes the cleanup object to ResourceHashtable::unlink()
>> function which calls the do_entry() function in the cleanup object.
>
> Ah I see (well I don't really see as this is very obscure). I would have expected `CleanupObjectMonitorsHashtable` to be a subtype of something that I could then see is used by the ResourceHashtable. I'm going to guess that there is some template usage here that ensures the passed in object has the right API even if there is no subtyping relationship. Hard to see these connections at a distance.
> 
> To be clear not a review as I don't understand our Hashtable's enough to make much sense of what is actually happening here.

It would be a nice place for a lambda (on the list of future RFEs).  You could also put this class in scope of the function that calls it which might help.  (optional)

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

PR: https://git.openjdk.java.net/jdk18/pull/25


More information about the hotspot-runtime-dev mailing list