Integrated: 8339198: Remove tag field from AbstractPoolEntry
Chen Liang
liach at openjdk.org
Fri Sep 20 16:14:40 UTC 2024
On Thu, 19 Sep 2024 17:07:41 GMT, Chen Liang <liach at openjdk.org> wrote:
> The `tag` field in `AbstractPoolEntry` is redundant, as it's always of the same value for each subtype. This is now replaced with an override. This can reduce the footprint of the entries..
>
> The removal of `hash` was considered but withdrawn; in part because hash computations are heavy; in c2 things as simple as identity hash code are better stored in object fields for performance.
This pull request has now been integrated.
Changeset: ab81197d
Author: Chen Liang <liach at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ab81197d0ded93b82eea9f8fb35d1647c4520f1e
Stats: 140 lines in 1 file changed: 97 ins; 4 del; 39 mod
8339198: Remove tag field from AbstractPoolEntry
Reviewed-by: asotona, redestad
-------------
PR: https://git.openjdk.org/jdk/pull/21093
More information about the core-libs-dev
mailing list