-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8371297: C2: assert triggered in BoolTest::BoolTest #28141
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
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e27247b
initial commit
4a75e87
Merge branch 'openjdk:master' into master
Hamlin-Li 4ee1df1
Merge branch 'openjdk:master' into master
Hamlin-Li 0ff5e42
Merge branch 'openjdk:master' into master
Hamlin-Li 924c4c9
Merge branch 'openjdk:master' into master
Hamlin-Li 75dee02
Merge branch 'openjdk:master' into master
Hamlin-Li 57973f4
Merge branch 'openjdk:master' into master
Hamlin-Li 4b058ce
Merge branch 'openjdk:master' into master
Hamlin-Li b73a502
Merge branch 'openjdk:master' into master
Hamlin-Li 8eba0c0
Merge branch 'openjdk:master' into master
Hamlin-Li 7f36f23
Merge branch 'openjdk:master' into master
Hamlin-Li 3089ec9
Merge branch 'openjdk:master' into master
Hamlin-Li 2238d76
Merge branch 'openjdk:master' into master
Hamlin-Li c0358cf
Merge branch 'openjdk:master' into master
Hamlin-Li f54562f
Merge branch 'openjdk:master' into master
Hamlin-Li 6635678
Merge branch 'openjdk:master' into master
Hamlin-Li 736425c
Merge branch 'openjdk:master' into master
Hamlin-Li 0c877e2
initial commit
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 was wondering why we pass the raw mask around instead of keeping it encapsulated in a BoolTest object. Elsewhere I saw code like this:
cond->get_con() & (BoolTest::unsigned_compare - 1)which seems to be making fragile assumptions about BoolTest internals.
Uh oh!
There was an error while loading. Please reload this page.
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.
@dean-long Yes, I have the same feeling that BoolTest is currently used in a fragile way. The reasons could be, BoolTest itself is by design a struct and expose all its status, and
unsigned_compareis indeed not formally supported but needed somewhere e.g. in vector intrinsic, and auto-vectorization (after #28047).I think it's worth to do more investigation about the refactoring of BoolTest. Besides of several places using
unsigned_compare, there are more places using signed BoolTest, it might be helpful to do it in another specific pr, so file https://bugs.openjdk.org/browse/JDK-8371396 to track it, feel free to take it if you already have a solution or idea.This issue (in fact it's #27942) blocks several other prs in my backlog for a while, e.g. #25336, #25341. It helps to resolve this assert in a quick (although ugly) way. Please kindly let me know how you think about it. Thanks!