Integrated: 8321288: [JVMCI] HotSpotJVMCIRuntime doesn't clean up WeakReferences in resolvedJavaTypes
Tom Rodriguez
never at openjdk.org
Fri Dec 15 17:27:58 UTC 2023
On Tue, 5 Dec 2023 19:00:51 GMT, Tom Rodriguez <never at openjdk.org> wrote:
> HotSpotJVMCIRuntime.resolvedJavaTypes implements a weak value map but is lacking code to clean out cleared weak references. In normal mixed execution this isn't likely to get big and generally isolates are shutdown frequently so this doesn't lead to problems. In Xcomp mode with tests that stress unloading this becomes more problematic. In the worst case is still doesn't lead to large heaps but does make the idle heap larger than required.
>
> This PR adds ReferenceQueue based cleaning of reclaimed values. Testing in the context of a long running isolate shows that they are no longer accumulating.
This pull request has now been integrated.
Changeset: 05f7f0ad
Author: Tom Rodriguez <never at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/05f7f0ade2c6c8ef57e884048cf159c46fa27b36
Stats: 48 lines in 1 file changed: 43 ins; 0 del; 5 mod
8321288: [JVMCI] HotSpotJVMCIRuntime doesn't clean up WeakReferences in resolvedJavaTypes
Reviewed-by: dnsimon, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/16981
More information about the hotspot-compiler-dev
mailing list