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

Prune constructors from NPE stack trace #11283

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

JasonFengJ9
Copy link
Member

@JasonFengJ9 JasonFengJ9 commented Nov 26, 2020

Specify pruneConstructors = true for NPE iterateStackTrace();
Also exclude java/lang/NullPointerException.fillInStackTrace() from JIT compilation to keep the stack frame consistent.

MauveMultiThreadLoadTest_0 passed in 50x grinder at xa64 & ap64 platforms.

closes #11206

Signed-off-by: Jason Feng fengj@ca.ibm.com

Specify pruneConstructors = true for NPE iterateStackTrace;
Also exclude java/lang/NullPointerException.fillInStackTrace() from JIT
compilation to keep the stack frame consistent.

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@JasonFengJ9
Copy link
Member Author

@gacholio could you please review?

@pshipton
Copy link
Member

jenkins test sanity plinux,zlinux,win jdk15

@pshipton
Copy link
Member

@fjeremic can someone review from the JIT perspective pls.

@pshipton
Copy link
Member

Oops, ran the wrong tests.

jenkins test sanity.system plinux,zlinux,win jdk15

@gacholio
Copy link
Contributor

The JIT has to transition to the interpreter to run the fillInStackTrace native, so excluding the forwarder method will likely have no detectable performance impact.

@pshipton
Copy link
Member

The Windows TestJlmRemoteMemoryNoAuth_0 failure is a known problem which is unrelated to this PR.

@gacholio gacholio merged commit 6a074cc into eclipse-openj9:master Nov 26, 2020
@pshipton
Copy link
Member

Test re-included via adoptium/aqa-systemtest#382

@JasonFengJ9 JasonFengJ9 deleted the npectr branch November 26, 2020 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jdk15 NullPointerException.constructor Cannot invoke "java.lang.Throwable.fillInStackTrace()
4 participants