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

[Wisp] only test c1 assertion failure in slowdebug mode #604

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

jia-wei-tang
Copy link
Collaborator

@jia-wei-tang jia-wei-tang commented Dec 8, 2023

Summary: Determine the java mode before run normal logics.
If java is release or fastdebug, just go to the ending early.

Testing: hotspot/test/runtime/coroutine/c1AssertFailTest.sh

Reviewers: lingjun-cg, yulei

Issue: #605

@jia-wei-tang jia-wei-tang reopened this Dec 11, 2023
@jia-wei-tang jia-wei-tang changed the title [EagerAppCDS] fix bug caused by using lambda in ClassLoader.java [Wisp] Restrict ciAssertFailTest.sh to running in slowdebug Dec 11, 2023
@jia-wei-tang jia-wei-tang changed the title [Wisp] Restrict ciAssertFailTest.sh to running in slowdebug [Wisp] only test c1 assertion failure in slowdebug mode Dec 11, 2023
Summary: Determine the java mode before run normal logics.
If java is release or fastdebug, just go to the ending early.

Testing: hotspot/test/runtime/coroutine/c1AssertFailTest.sh

Reviewers: lingjun-cg, yulei

Issue: dragonwell-project#605
Function getNewPkg = new Function<Object, Object>() {
@Override
public java.lang.Object apply(java.lang.Object t) {
return new_pkg;
Copy link
Collaborator

Choose a reason for hiding this comment

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

new_pkg换成newPkg吧,一般java不会使用下划线的风格

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个修改我之后要再开一个pr对应一个新的issue,稍后修改

@@ -125,8 +125,7 @@ public void testLogging() throws IOException {
"-Djava.security.manager",
"com.example.TestLambda");
// dump/com/example + 2 class files
// dump/java/lang + 1 class file
assertEquals(Files.walk(Paths.get("dump")).count(), 8, "Two lambda captured");
assertEquals(Files.walk(Paths.get("dump")).count(), 5, "Two lambda captured");
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里改的原因是什么?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这里原本ClassLoader.java里使用lambda后会增加3个,但是现在为了解决bug,需要去除lambda,这里的数量需要减少(其实和最初是一致的,可以看之前的pr: https://github.com/dragonwell-project/dragonwell8/pull/600)
这个修改也会和上面的一起放到新的pr里

@jia-wei-tang jia-wei-tang merged commit ec6f074 into dragonwell-project:master Dec 11, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants