mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
push method frame for native invocations (so we'll see them in stack traces)
This commit is contained in:
@ -7,7 +7,7 @@ public class Throwable {
|
|||||||
|
|
||||||
public Throwable(String message, Throwable cause) {
|
public Throwable(String message, Throwable cause) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.trace = trace(0);
|
this.trace = trace(1);
|
||||||
this.cause = cause;
|
this.cause = cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3892,8 +3892,12 @@ run(Thread* t)
|
|||||||
unsigned base = sp - parameterCount;
|
unsigned base = sp - parameterCount;
|
||||||
|
|
||||||
if (methodFlags(t, code) & ACC_NATIVE) {
|
if (methodFlags(t, code) & ACC_NATIVE) {
|
||||||
|
frame = makeFrame(t, code, frame, 0, base, 0, false);
|
||||||
|
|
||||||
object r = invokeNative(t, code);
|
object r = invokeNative(t, code);
|
||||||
|
|
||||||
|
frame = frameNext(t, frame);
|
||||||
|
|
||||||
if (UNLIKELY(exception)) {
|
if (UNLIKELY(exception)) {
|
||||||
goto throw_;
|
goto throw_;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user