-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[GR-44098] Add lambda methods test in debuginfotest #4311
Conversation
01070f8
to
29738ca
Compare
The underlying issue has been fixed in jdk17u-dev and is expected to land in OpenJDK 17.0.4 (July 19 2022). As a result we could consider this PR for inclusion in GraalVM 22.2.0 (July 26, 2022). |
Hi, Thank you for contributing to GraalVM, when this PR is ready for review, please let me know so that I can take care of it and assign it to the proper engineer. |
29738ca
to
1d98afd
Compare
1d98afd
to
436a72c
Compare
Hi @zakkak,
|
@@ -229,4 +229,6 @@ private static void inlineReceiveConstants(byte b, int i, long l, String s, floa | |||
System.out.println(String.format("q = %g\n", q)); | |||
System.out.println(String.format("t = %s\n", t)); | |||
} | |||
|
|||
final static java.util.function.Supplier<String> lambda = () -> "lambdaText"; |
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 do not see any use of that lambda elsewhere. Thus, it is not guaranteed that the reachability analysis will keep it.
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.
Yes, this actually needs to be called by the test program.
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.
The current check is good. However, as Paul said, we really need this to check breakpoints work at the point of lambda invocation and in the lambda itself. I think it would be best to add that from the start rather than via a follow-up.
Hi all, this is on my to-do list (just not high enough :) ) |
d6d2b01
to
6302e97
Compare
@zakkak please fix the merge conflict before we make the internal PR. |
6302e97
to
b8bb993
Compare
Done, should be good to go. |
@olpaw could you please create the internal PR for this? |
b8bb993
to
e0b6bce
Compare
@olpaw @oubidar-Abderrahim I rebased once again to resolve some new conflicts. Please review and merge if OK. |
Ping @olpaw @oubidar-Abderrahim ^^ |
e0b6bce
to
6b42fb0
Compare
@oubidar-Abderrahim done. Please note that this is the 3rd rebase after the PR's approval. Since this has already been approved, and the conflicts were mostly on line number differences, could you please push it for internal review once the github actions run? |
@oubidar-Abderrahim the CI is happy and there are no conflicts, could you please push this to the internal queue? |
7c003a3
to
550da8b
Compare
26053bb
to
a1939b1
Compare
Our CI has unfortunately mirrored this to #6895. |
@@ -453,6 +457,10 @@ def test(): | |||
# print details of Hello type | |||
exec_string = execute("ptype 'hello.Hello'") | |||
rexp = [r"type = class hello\.Hello : public java\.lang\.Object {", | |||
# r"%spublic:"%spaces_pattern, | |||
# r"%sstatic %sjava\.util\.function\.Supplier \*lambda;"%(spaces_pattern, "_z_\." if isolates else ""), |
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.
Why is this commented out?
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.
Accidentally, it should just be removed, good catch! Do you want me to fix it here?
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.
Yes please. :)
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.
done
a1939b1
to
4c2436c
Compare
Catches JDK-8281266
This way we can add methods on top of main without affecting significantly the linenumbers in testhello.py
4c2436c
to
15bd5b5
Compare
Catches cases like graalvm#355 caused by JDK-8281266