-
Notifications
You must be signed in to change notification settings - Fork 1k
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
LUCENE-10605: fix error in 32bit jvm object alignment gap calculation #949
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, overall LGTM, some minor comments on docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a non-risky change. If you did some tests and this behaves better, I am fine!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for adding the explanation!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an entry in CHANGES.txt
Thanks for reminding |
Merged, thank you! Do you want to open a backport PR yourself? @wormday |
@zhaih Sorry, I don't know how to operate it. Is there a tutorial? |
@wormday Ah basically just apply the same change to The easiest way I guess is to use |
@zhaih |
Hmmm I think we'll only update Lucene8 if there's a bug need to be fixed, so not actively developed. Let's merge this change into |
Hi, About 32 bit: You can download 32 bit versions of Java also after 9. Oracle does not have them anymore, but other vendors for sure do, e.g. Adoptium: https://adoptium.net/temurin/archive We don't test them anymore since Lucenes 9, but we could reenable it. P.S. for backports to 9.x separate pull requests are not needed. For simple changes like this the person who merged the pull request can easily do a simple cherry pick. I do that in most cases automatically. Costs a few seconds and pushing the change to other branch. The additional PR is IMHO too noisy also on mailing lists and really not needed. |
Description
https://issues.apache.org/jira/browse/LUCENE-10605
ArrayUtil.oversize()
The generated array length cannot eliminate the Object alignment gap, wasting some space