-
Notifications
You must be signed in to change notification settings - Fork 496
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
Conversation
6bb567f
to
64e5be6
Compare
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; |
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.
new_pkg换成newPkg吧,一般java不会使用下划线的风格
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.
这个修改我之后要再开一个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"); |
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.
这里改的原因是什么?
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.
这里原本ClassLoader.java里使用lambda后会增加3个,但是现在为了解决bug,需要去除lambda,这里的数量需要减少(其实和最初是一致的,可以看之前的pr: https://github.com/dragonwell-project/dragonwell8/pull/600)
这个修改也会和上面的一起放到新的pr里
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