Lines Matching refs:CallFrame
50 static class CallFrame {
53 CallFrame(Class<?> c, String methodname) {
56 CallFrame(String classname, String methodname) {
80 CallFrame[] callStack = new CallFrame[] {
81 new CallFrame(Thread.class, "getStackTrace"),
82 new CallFrame(DumpStackTest.class, "test"),
83 new CallFrame(DumpStackTest.class, "main"),
85 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke0"), // non-public class
86 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke"),
87 new CallFrame("jdk.internal.reflect.DelegatingMethodAccessorImpl", "invoke"),
88 new CallFrame(Method.class, "invoke"),
89 new CallFrame(Thread.class, "run"),
96 static void getStackTrace(CallFrame[] callStack) {
98 callStack[0] = new CallFrame(DumpStackTest.class, "getStackTrace");
113 CallFrame[] callStack = new CallFrame[] {
114 new CallFrame(Thread.class, "getStackTrace"),
115 new CallFrame(this.getClass(), "c"),
116 new CallFrame(this.getClass(), "run")
134 CallFrame[] callStack = new CallFrame[]{
135 new CallFrame(Thread.class, "getStackTrace"),
136 new CallFrame(DumpStackTest.class, "consumeLambda"),
137 new CallFrame(DumpStackTest.class, "lambda$testLambda$0"),
138 new CallFrame(DumpStackTest.class, "testLambda"),
139 new CallFrame(DumpStackTest.class, "main"),
141 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke0"),
142 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke"),
143 new CallFrame("jdk.internal.reflect.DelegatingMethodAccessorImpl", "invoke"),
144 new CallFrame(Method.class, "invoke"),
145 new CallFrame(Thread.class, "run")
161 CallFrame[] callStack = new CallFrame[] {
162 new CallFrame(Thread.class, "getStackTrace"),
163 new CallFrame(DumpStackTest.class, "methodInvoke"),
164 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke0"),
165 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke"),
166 new CallFrame("jdk.internal.reflect.DelegatingMethodAccessorImpl", "invoke"),
167 new CallFrame(Method.class, "invoke"),
168 new CallFrame(DumpStackTest.class, "testMethodInvoke"),
169 new CallFrame(DumpStackTest.class, "main"),
171 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke0"),
172 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke"),
173 new CallFrame("jdk.internal.reflect.DelegatingMethodAccessorImpl", "invoke"),
174 new CallFrame(Method.class, "invoke"),
175 new CallFrame(Thread.class, "run")
193 CallFrame[] callStack = new CallFrame[]{
194 new CallFrame(Thread.class, "getStackTrace"),
195 new CallFrame(DumpStackTest.class, "methodHandle"),
196 new CallFrame(DumpStackTest.class, "testMethodHandle"),
197 new CallFrame(DumpStackTest.class, "main"),
199 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke0"),
200 new CallFrame("jdk.internal.reflect.NativeMethodAccessorImpl", "invoke"),
201 new CallFrame("jdk.internal.reflect.DelegatingMethodAccessorImpl", "invoke"),
202 new CallFrame(Method.class, "invoke"),
203 new CallFrame(Thread.class, "run")
209 static void assertStackTrace(StackTraceElement[] actual, CallFrame[] expected) {
223 static void assertEquals(StackTraceElement actual, CallFrame expected, int idx) {