Integrated: 8329203: Parallel: Investigate Mark-Compact for Full GC to decrease memory usage
Albert Mingkun Yang
ayang at openjdk.org
Thu May 23 07:18:09 UTC 2024
On Mon, 6 May 2024 10:31:48 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> Refactor Parallel full-gc to use the same algorithm (mark-compact) as Serial and G1 full-GC. This removes the obj-end bitmap. When GC threads are few, the old implementation can be more efficient because it requires fewer heap iterations. The new full-GC implementation, on the other hand, is more scalable because it introduces more phases (`forward_to_new_addr` and `adjust_pointers`) that can partition work effectively.
>
> The diff is rather large, so reading the new code directly from `invoke_no_policy` is probably easier.
>
> Test: tier1-6; some improvement in Dacapo-h2, CacheStresser, but no difference in specjbb2015, specjvm2008.
This pull request has now been integrated.
Changeset: 94af3c23
Author: Albert Mingkun Yang <ayang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/94af3c23ea09ef2869cdc666d8170a655a0b3602
Stats: 1552 lines in 9 files changed: 417 ins; 1035 del; 100 mod
8329203: Parallel: Investigate Mark-Compact for Full GC to decrease memory usage
Reviewed-by: rkennke, gli
-------------
PR: https://git.openjdk.org/jdk/pull/19101
More information about the hotspot-gc-dev
mailing list