Integrated: 8301063: Remove dead code from GrowableArray

Tobias Hartmann thartmann at openjdk.org
Thu Jan 26 07:02:33 UTC 2023


On Wed, 25 Jan 2023 11:55:26 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> While looking for a method to truncate a GrowableArray, I noticed that there are both `trunc_to` and `truncate_to` while the behavior of the latter is confusing. Since it's unused, I propose to remove it (together with `data_size_in_bytes` which is also unused). The `truncate_to` and `truncate_from` methods were added by [JDK-8271515](https://bugs.openjdk.org/browse/JDK-8271515) and were unused right from the beginning. `data_size_in_bytes` was introduced by [JDK-8254231](https://bugs.openjdk.org/browse/JDK-8254231) and became unused after [JDK-8283689](https://bugs.openjdk.org/browse/JDK-8283689).
> 
> Thanks,
> Tobias

This pull request has now been integrated.

Changeset: 252621d4
Author:    Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/252621d4e0c656b160bf41cbf413fb7c7ee1daaf
Stats:     15 lines in 1 file changed: 0 ins; 15 del; 0 mod

8301063: Remove dead code from GrowableArray

Reviewed-by: chagedorn, kvn

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

PR: https://git.openjdk.org/jdk/pull/12191


More information about the hotspot-dev mailing list