RFR: 8319955: Improve dependencies removal during class unloading
David Holmes
dholmes at openjdk.org
Tue Nov 14 08:02:27 UTC 2023
On Mon, 13 Nov 2023 18:52:47 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
> Hi all,
>
> please review this performance improvement to dependency removal during class unloading: instead of moving the dependencies item by item via a `cmpxchg`, batch this operation.
>
> This makes that part of class unloading ~7x faster in my measurements (class unloading stress test, loading/unloading 6k classes).
>
> Testing: tier1-7
>
> Thanks,
> Thomas
So this batches the operation by moving the batch to the purge list, but it doesn't actually release anything. Who/what will process the purge list and when? The implications of this change in terms of concurrent activities is far from clear.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16639#issuecomment-1809705815
More information about the hotspot-gc-dev
mailing list