Skip to content

Conversation

@merykitty
Copy link
Member

@merykitty merykitty commented Oct 8, 2024

Hi,

This patch refactors TypeVect to use a BasicType instead of a const Type* as our current implementation. This conveys the element information in a clearer and safer manner.

Please take a look and leave your reviews,
Thanks a lot.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8341784: Refactor TypeVect to use a BasicType instead of a const Type* (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21414/head:pull/21414
$ git checkout pull/21414

Update a local copy of the PR:
$ git checkout pull/21414
$ git pull https://git.openjdk.org/jdk.git pull/21414/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21414

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21414.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 8, 2024

👋 Welcome back qamai! 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
Copy link

openjdk bot commented Oct 8, 2024

@merykitty 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:

8341784: Refactor TypeVect to use a BasicType instead of a const Type*

Reviewed-by: kvn, jkarthikeyan

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

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 rfr Pull request is ready for review label Oct 8, 2024
@openjdk
Copy link

openjdk bot commented Oct 8, 2024

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

  • hotspot-compiler

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.

@mlbridge
Copy link

mlbridge bot commented Oct 8, 2024

Webrevs

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Need to test it internally.

//------------------------------meet-------------------------------------------
// Compute the MEET of two types. It returns a new Type object.
const Type *TypeVect::xmeet( const Type *t ) const {
// Compute the MEET of two types. It returns a new Type object.
Copy link
Contributor

Choose a reason for hiding this comment

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

It never returns new type now.

@vnkozlov
Copy link
Contributor

vnkozlov commented Oct 9, 2024

My testing passed.

@merykitty
Copy link
Member Author

@vnkozlov Thanks for your reviews and testings, the latest commit addresses your concern, as well as contains some minor style changes and a removal of switch case duplication.

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Good.

You need second review because change is not trivial.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 9, 2024
Copy link
Member

@jaskarth jaskarth left a 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 really nice cleanup, it makes working with vectors more clear. I've added some minor stylistic fixes you could do since you're already changing these lines.

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Oct 10, 2024
@merykitty
Copy link
Member Author

@jaskarth Nice suggestions, I have reviewed the patch and done similar changes to nearby lines.

Copy link
Member

@jaskarth jaskarth left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

@merykitty
Copy link
Member Author

@vnkozlov Could you re-review this, please, it seems required.

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Update is good.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 10, 2024
@merykitty
Copy link
Member Author

Thanks a lot for your reviews
/integrate

@openjdk
Copy link

openjdk bot commented Oct 11, 2024

Going to push as commit 7276a1b.
Since your change was applied there have been 86 commits pushed to the master branch:

  • 6133866: 8341070: javac fails with an exception when compiling import module under source level 8
  • 519544c: 8341909: G1: Add region index to region printer output
  • 7c0dbf8: 8341820: Check return value of hcreate_r
  • ae41daf: 8341880: RISC-V: riscv_vector.h native build fails with gcc13 after JDK-8320500
  • ace44e5: 8341806: Gcc version detection failure on Alinux3
  • 472db92: 8341900: Optimize DirectCodeBuilder writeBody
  • 24eb360: 8341906: Optimize ClassFile writing BufBuffer
  • cd4981c: 8341257: Open source few DND tests - Set1
  • 06f34d7: 8339651: ShenandoahPacer::setup_for_mark, ShenandoahPacer::setup_for_updaterefs and ShenandoahPacer::setup_for_evac runtime error: division by zero
  • 97ee8bb: 8340173: Open source some Component/Panel/EventQueue tests - Set2
  • ... and 76 more: https://git.openjdk.org/jdk/compare/260d4658aefe370d8994574c20057de07fd6f197...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Oct 11, 2024
@openjdk openjdk bot closed this Oct 11, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Oct 11, 2024
@openjdk
Copy link

openjdk bot commented Oct 11, 2024

@merykitty Pushed as commit 7276a1b.

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

@jatin-bhateja
Copy link
Member

Hi @merykitty , LGTM.

Best Regards.

@merykitty
Copy link
Member Author

@jatin-bhateja Thanks a lot for your reviews.

@eme64
Copy link
Contributor

eme64 commented Oct 21, 2024

@merykitty I was out on vacation and missed this patch. Can you tell me why the long type has the letter J and not L in the vector type?

@eme64
Copy link
Contributor

eme64 commented Oct 21, 2024

Ah, I guess that is generally the letter we use when passing longs, like in method signatures. And that is because L is already taken for objects. Oh well, makes sense now 😆

@PaulSandoz
Copy link
Member

Ah, I guess that is generally the letter we use when passing longs, like in method signatures. And that is because L is already taken for objects. Oh well, makes sense now 😆

Welcome to the in-between world of Java and the JVM :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler [email protected] integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

6 participants