8270061: Change parameter order of ResourceHashtable#4912
8270061: Change parameter order of ResourceHashtable#4912iklam wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
Webrevs
|
coleenp
left a comment
There was a problem hiding this comment.
Looks good. Thanks for doing this!
|
@iklam 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: 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
tstuefe
left a comment
There was a problem hiding this comment.
Looks good.
One could save even more writing by some more reordering: move MEMFLAGS upfront, since its is usually specified, and make the default allocator C_HEAP, because more users seem to want a C-heap map than a resource area one.
But this is just idle nitpicking, the change is good as it is.
..Thomas
|
Oh but MEMFLAGS is generally found after the allocation type and I thought there were more resource allocated resource hashtables (at least initially). |
OK, I'll leave the PR as is without further rearranging the arguments. Since the class is named ResourceHashtable, using C_HEAP as the default seems a little weird. We are planning to get rid of the "old" Hashtable and then rename ResourceHashtable to Hashtable. We can rethink the default values at that point. |
…reorder-resource-hash-params
Sure, all good! |
|
Going to push as commit 357947a.
Your commit was automatically rebased without conflicts. |
The template parameter for ResourceHashtable is currently in this order:
However, more often than not, default values of
HASHandEQUALSwill be used, where the other parameters may need to be specified.We should move the
HASHandEQUALSparameters to the end of the parameter list.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4912/head:pull/4912$ git checkout pull/4912Update a local copy of the PR:
$ git checkout pull/4912$ git pull https://git.openjdk.java.net/jdk pull/4912/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4912View PR using the GUI difftool:
$ git pr show -t 4912Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4912.diff