Integrated: 8368213: ZGC: Cleanup dead code, unimplemented declarations, unused private fields
Axel Boldt-Christmas
aboldtch at openjdk.org
Tue Sep 23 07:18:39 UTC 2025
On Mon, 22 Sep 2025 05:58:14 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> Over the last years refactoring and bug fixes a bit of dead code has slipped through. Clean up some of this. Purposely do not touch unused public declarations with an implementation (most if not all are trivial property checks or simple constructions which have negligible maintenance cost to keep.) nor unused public typedefs.
>
> The `is_high_usage` helper was rewritten to take a boolean rather than an optional templated print function pointer, as there was only one usage (a lambda which captured nothing).
>
> Also updated `GCThreadLocalData` size to reflect the changes that has occurred over time. Maybe we can derive this size from all the implementors in the future, but may be to hard to do in a non hack-y way.
>
> * Testing
> * Running ZGC test tier 1-5 on Oracle supported platforms.
This pull request has now been integrated.
Changeset: 47ed1a8d
Author: Axel Boldt-Christmas <aboldtch at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/47ed1a8d1768ef0623fd9d1ff68d39df5dffaad0
Stats: 46 lines in 9 files changed: 1 ins; 36 del; 9 mod
8368213: ZGC: Cleanup dead code, unimplemented declarations, unused private fields
Reviewed-by: stefank, jsikstro
-------------
PR: https://git.openjdk.org/jdk/pull/27415
More information about the hotspot-gc-dev
mailing list