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

8276806: Use Objects.checkFromIndexSize where possible in java.base #6297

wants to merge 2 commits into from


Copy link

@stsypanov stsypanov commented Nov 8, 2021

This is a follow-up for #4507, looks like there are some cases that were not covered.

Also this is related to #3615


  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed


  • JDK-8276806: Use Objects.checkFromIndexSize where possible in java.base



Using git

Checkout this PR locally:
$ git fetch pull/6297/head:pull/6297
$ git checkout pull/6297

Update a local copy of the PR:
$ git checkout pull/6297
$ git pull pull/6297/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 6297

View PR using the GUI difftool:
$ git pr show -t 6297

Using diff file

Download this PR as a diff file:

Copy link

@bridgekeeper bridgekeeper bot commented Nov 8, 2021

👋 Welcome back stsypanov! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr label Nov 8, 2021
Copy link

@openjdk openjdk bot commented Nov 8, 2021

@stsypanov The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the core-libs label Nov 8, 2021
Copy link

@mlbridge mlbridge bot commented Nov 8, 2021


Copy link

@openjdk openjdk bot commented Nov 19, 2021

⚠️ @stsypanov the full name on your profile does not match the author name in this pull requests' HEAD commit. If this pull request gets integrated then the author name from this pull requests' HEAD commit will be used for the resulting commit. If you wish to push a new commit with a different author name, then please run the following commands in a local repository of your personal fork:

$ git checkout 8276806
$ git commit -c'Preferred Full Name' --allow-empty -m 'Update full name'
$ git push

Copy link

@openjdk openjdk bot commented Nov 19, 2021

@stsypanov This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file for details.

After integration, the commit message for the final commit will be:

8276806: Use Objects.checkFromIndexSize where possible in java.base

Reviewed-by: rriggs, lancea

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 179 new commits pushed to the master branch:

  • 2d4af22: 8277370: configure script cannot distinguish WSL version
  • a3406a1: 8277092: fails with "RuntimeException: Committed seems high: NNNN expected at most MMMM"
  • e47cc81: 8275386: Change nested classes in jdk.jlink to static nested classes
  • f609b8f: 8274946: Cleanup unnecessary calls to Throwable.initCause() in java.rmi
  • 36b59f3: 8274333: Redundant null comparison after Pattern.split
  • 6677554: 8274949: Use String.contains() instead of String.indexOf() in java.base
  • 09e8c8c: 8277342: vmTestbase/nsk/stress/strace/ fails with SIGSEGV in InstanceKlass::jni_id_for
  • 976c2bb: 8277212: GC accidentally cleans valid megamorphic vtable inline caches
  • 03f8c0f: 8275887: jarsigner prints invalid digest/signature algorithm warnings if keysize is weak/disabled
  • 936f7ff: 8276150: Quarantined jpackage apps are labeled as "damaged"
  • ... and 169 more:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@RogerRiggs, @LanceAndersen) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready label Nov 19, 2021
Copy link

@LanceAndersen LanceAndersen left a comment

This Looks OK to me

Copy link
Contributor Author

@stsypanov stsypanov commented Nov 19, 2021


@openjdk openjdk bot added the sponsor label Nov 19, 2021
Copy link

@openjdk openjdk bot commented Nov 19, 2021

Your change (at version 0089a64) is now ready to be sponsored by a Committer.

Copy link

@RogerRiggs RogerRiggs commented Dec 2, 2021


Copy link

@openjdk openjdk bot commented Dec 2, 2021

Going to push as commit 73a9654.
Since your change was applied there have been 339 commits pushed to the master branch:

  • 30087cc: 8275342: Change nested classes in java.prefs to static nested classes
  • 669c90e: 8278099: two sun/security/pkcs11/Signature tests failed with AssertionError
  • 4f15be2: 8277965: Enclosing instance optimization affects serialization
  • 8f196a2: 8278037: Clean up PPC32 related code in C1
  • 8b042d1: 8257856: Make robust to JDK version updates
  • ad1ff27: 8277422: tools/jar/ fails with modified time mismatch
  • 7c4ef3a: 8277985: G1: Compare max_parallel_refinement_threads to UINT_MAX
  • dc2abc9: 8278080: Add --with-cacerts-src='user cacerts folder' to enable deterministic cacerts generation
  • 8d9cb2e: 8278078: Cannot reference super before supertype constructor has been called
  • 65960f7: 8277753: Long* fail with "bad AD file" on x86_32 after JDK-8276162
  • ... and 329 more:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Dec 2, 2021
@openjdk openjdk bot added integrated and removed ready rfr sponsor labels Dec 2, 2021
Copy link

@openjdk openjdk bot commented Dec 2, 2021

@RogerRiggs @stsypanov Pushed as commit 73a9654.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@stsypanov stsypanov deleted the 8276806 branch Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
core-libs integrated
4 participants