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

8233378: CHT: Fast reset #3950

Closed
wants to merge 1 commit into from

Conversation

walulyai
Copy link
Member

@walulyai walulyai commented May 10, 2021

Hi all,

Please review this change to add a dedicated method that just resets the internal table (optionally setting it to a new size) without going through new/delete of the CHT. Currently, the CHT destructor calls Value::destroy_node() on every element in the table which may be very slow for some use-cases.

Testing: tier 1-3 (Linux, Windows).


Progress

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

Issue

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3950/head:pull/3950
$ git checkout pull/3950

Update a local copy of the PR:
$ git checkout pull/3950
$ git pull https://git.openjdk.java.net/jdk pull/3950/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3950

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3950.diff

@bridgekeeper
Copy link

bridgekeeper bot commented May 10, 2021

👋 Welcome back iwalulya! 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 Pull request is ready for review label May 10, 2021
@openjdk
Copy link

openjdk bot commented May 10, 2021

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

  • hotspot

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 hotspot hotspot-dev@openjdk.org label May 10, 2021
@mlbridge
Copy link

mlbridge bot commented May 10, 2021

Webrevs

Copy link
Contributor

@tschatzl tschatzl left a comment

Choose a reason for hiding this comment

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

Lgtm

@walulyai
Copy link
Member Author

Thanks @tschatzl

@openjdk
Copy link

openjdk bot commented May 11, 2021

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

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

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

8233378: CHT: Fast reset

Reviewed-by: tschatzl, rehn

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 24 new commits pushed to the master branch:

  • 9c9c47e: 8266813: Shenandoah: Use shorter instruction sequence for checking if marking in progress
  • 0344e75: 8266794: Remove dead code notify_allocation_jvmti_allocation_event
  • 9e6e222: 8266892: avoid maybe-uninitialized gcc warnings on linux s390x
  • 6575566: 8266787: Potential overflow of pointer arithmetic in G1ArchiveAllocator
  • 8468001: 8263452: Javac slow compilation due to algorithmic complexity
  • 67cb22a: 8266601: Fix bugs in AddLNode::Ideal transformations
  • 18e9d28: 8266676: G1: Remove dead code init_node_id_to_index_map()
  • 0e7bdae: 8265062: Remove duplication constant MaxTextureSize
  • 10a049e: 8265956: JVM crashes when matching LShiftVB Node
  • 9713152: 8262092: vmTestbase/nsk/jvmti/scenarios/hotswap/HS102/hs102t001/TestDescription.java SIGSEGV in memmove_ssse3
  • ... and 14 more: https://git.openjdk.java.net/jdk/compare/0f925d1f58ffc0c56ae85a189798f8d99d90d443...master

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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label May 11, 2021
Copy link
Contributor

@robehn robehn left a comment

Choose a reason for hiding this comment

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

Looks ok! Thanks for also adding the gtests.

@walulyai
Copy link
Member Author

Thanks @robehn

@walulyai
Copy link
Member Author

/integrate

@openjdk openjdk bot closed this May 12, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 12, 2021
@openjdk
Copy link

openjdk bot commented May 12, 2021

@walulyai Since your change was applied there have been 50 commits pushed to the master branch:

  • f3b510b: 8266923: [JVMCI] expose StackOverflow::_stack_overflow_limit to JVMCI
  • 548899d: 8266189: Remove C1 "IfInstanceOf" instruction
  • b46086d: 8266874: Clean up C1 canonicalizer for TableSwitch/LookupSwitch
  • 97367c0: 8266808: Search label still uses old search field id
  • 06d7602: 8261158: JVMState should not be shared between SafePointNodes
  • 476994a: 8266531: ZAddress::address() should be removed from SA
  • e828a93: 8261395: C1 crash "cannot make java calls from the native compiler"
  • 3c47cab: 8261034: improve jcmd GC.class_histogram to support parallel
  • ed32e02: 8241187: ToolBox::grep should allow for negative filtering
  • cc03734: 8266925: Add a test to verify that hidden class's members are not statically invocable
  • ... and 40 more: https://git.openjdk.java.net/jdk/compare/0f925d1f58ffc0c56ae85a189798f8d99d90d443...master

Your commit was automatically rebased without conflicts.

Pushed as commit dcf250d.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants