Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] 8307352: AARCH64: Improve itable_stub #764

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

linade
Copy link
Collaborator

@linade linade commented Jan 5, 2024

Minor conflicts:

1 conflict in src/hotspot/cpu/aarch64/assembler_aarch64.hpp:
tip: guarantee(ext().shift() <= 0 || ext().shift() == (int)size, "bad shift");
dw11: guarantee(_ext.shift() <= 0 || _ext.shift() == (int)size, "bad shift");

3 conflicts in src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp similar to:
tip: int ioffset = in_bytes(itableOffsetEntry::interface_offset());
dw11: int ioffset = itableOffsetEntry::interface_offset_in_bytes();

Summary: Improve performance of itable stub on aarch64

Test Plan: hotspot/jtreg

Reviewed-by: kuaiwei, sandlerwang

Issue: #763

@linade linade requested review from kuaiwei and sandlerwang January 5, 2024 04:20
linade added 2 commits January 5, 2024 15:52
Summary: Improve performance of itable stub on aarch64

Testing: hotspot/jtreg

Reviewed-by: kuaiwei, sandlerwang

Issue: dragonwell-project#763
@linade
Copy link
Collaborator Author

linade commented Jan 5, 2024

Code size grows by approximately 20 bytes

So I increased this estimate @mmyxym :
const ptrdiff_t estimate = UseCompactObjectHeaders ? 148 : 144;

@linade linade requested a review from mmyxym January 5, 2024 09:20

// Reduce "estimate" such that "padding" does not drop below 8.
const ptrdiff_t estimate = UseCompactObjectHeaders ? 128 : 124;
const ptrdiff_t codesize = typecheckSize + lookupSize;
const ptrdiff_t estimate = UseCompactObjectHeaders ? 148 : 144;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch looks good and the estimate size number needs more testing.

@linade linade merged commit aebe0bd into dragonwell-project:master Jan 9, 2024
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants