Home
last modified time | relevance | path

Searched refs:walker (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/test/java/lang/StackWalker/
DAcrossThreads.java63 public void test(StackWalker walker) { in test() argument
64 Thread t1 = new T1(walker); in test()
73 threads.add(new T1(walker)); in test()
74 threads.add(new T2(walker)); in test()
75 threads.add(new T3(walker)); in test()
94 default public void assertWalker(StackWalker walker, int n) { in assertWalker() argument
97 walker.forEach(f -> { in assertWalker()
110 assertTrue(walker.walk(s -> s.map(StackFrame::getMethodName) in assertWalker()
113 assertTrue(walker.walk(s -> s.map(StackFrame::getMethodName) in assertWalker()
116 assertTrue(walker.walk(s -> s.map(StackFrame::getMethodName) in assertWalker()
[all …]
DEmbeddedStackWalkTest.java66 public void test(StackWalker walker) { in test() argument
67 C1.call(walker, BIG_LOOP); in test()
76 public static void call(StackWalker walker, int loops) { in call() argument
78 String caller = walker.walk(s -> in call()
85 walker.forEach(f -> C2.testEmbeddedWalker()); in call()
87 call(walker, --loops); in call()
106 .forEach(walker -> run(walker)); in walk()
112 static void run(StackWalker walker) { in run() argument
118 handle.invoke(walker); in run()
124 static void call(StackWalker walker) { in call() argument
[all …]
DWalkFunction.java40 private static final StackWalker walker = StackWalker.getInstance(); field in WalkFunction
48 walker.walk(counter()); in main()
49 walker.walk(wildCounter()); in main()
53 walker.walk(Stream::count); in testFunctions()
56 walker.walk(null); in testFunctions()
60 Optional<StackFrame> result = walker.walk(WalkFunction::reduce); in testFunctions()
95 walker.walk(f1); in testWildcards()
96 walker.walk(f2); in testWildcards()
97 walker.walk(f3); in testWildcards()
98 walker.walk(f4); in testWildcards()
[all …]
DVerifyStackTrace.java56 StackWalker walker(); in walker() method
61 private final StackWalker walker = StackWalker.getInstance(RETAIN_CLASS_REFERENCE); field in VerifyStackTrace.TestCase1
96 @Override public StackWalker walker() { return walker;} in walker() method in VerifyStackTrace.TestCase1
101 private final StackWalker walker = StackWalker.getInstance( field in VerifyStackTrace.TestCase2
143 @Override public StackWalker walker() { return walker;} in walker() method in VerifyStackTrace.TestCase2
148 private final StackWalker walker = StackWalker.getInstance( field in VerifyStackTrace.TestCase3
194 @Override public StackWalker walker() { return walker;} in walker() method in VerifyStackTrace.TestCase3
200 private final StackWalker walker = StackWalker.getInstance( field in VerifyStackTrace.TestCase4
208 @Override public StackWalker walker() {return walker;} in walker() method in VerifyStackTrace.TestCase4
299 final Runnable run = () -> test.walker().forEach( in test()
DGetCallerClassTest.java52 private final StackWalker walker; field in GetCallerClassTest
56 this.walker = sw; in GetCallerClassTest()
184 GetCallerClassTest.staticGetCallerClass(walker, this.getClass(), expectUOE); in run()
185 GetCallerClassTest.reflectiveGetCallerClass(walker, this.getClass(), expectUOE); in run()
186 GetCallerClassTest.methodHandleGetCallerClass(walker, this.getClass(), expectUOE); in run()
194 Class<?> c = walker.getCallerClass(); in run()
221 GetCallerClassTest.staticGetCallerClass(walker, this.getClass(), expectUOE); in run()
222 GetCallerClassTest.reflectiveGetCallerClass(walker, this.getClass(), expectUOE); in run()
223 GetCallerClassTest.methodHandleGetCallerClass(walker, this.getClass(), expectUOE); in run()
234 GetCallerClassTest.staticGetCallerClass(walker, this.getClass(), expectUOE); in test()
[all …]
DReflectionFrames.java81 StackInspector.walker.set(StackInspector.walkerHide); in testNewStackInspector()
153 StackInspector.walker.set(StackInspector.walkerShow); in testNewStackInspector()
257 StackInspector.walker.set(StackInspector.walkerHide); in testConstructor()
329 StackInspector.walker.set(StackInspector.walkerShow); in testConstructor()
454 StackInspector.walker.set(StackInspector.walkerHide); in testNewInstance()
561 StackInspector.walker.set(StackInspector.walkerShow); in testNewInstance()
684 StackInspector.walker.set(StackInspector.walkerHide); in testGetCaller()
692 StackInspector.walker.set(StackInspector.walkerShow); in testGetCaller()
703 StackInspector.walker.set(StackInspector.walkerHide); in testReflectCaller()
711 StackInspector.walker.set(StackInspector.walkerShow); in testReflectCaller()
[all …]
DStackStreamState.java47 private final StackWalker walker = StackWalker.getInstance(); field in StackStreamState
53 walker.walk(s -> { in testStatic()
64 walker.walk(s -> { in testInstance()
74 Stream<StackFrame> stream = walker.walk(s -> { in testLocal()
DHiddenFrames.java52 private final StackWalker walker; field in HiddenFrames
58 this.walker = StackWalker.getInstance(); in HiddenFrames()
62 this.walker = StackWalker.getInstance(option); in HiddenFrames()
71 Stream.of(0).forEach(i -> walker.walk(s -> in walk()
DNativeMethod.java45 private final StackWalker walker; field in NativeMethod
47 this.walker = StackWalker.getInstance(Option.SHOW_REFLECT_FRAMES); in NativeMethod()
59 List<StackFrame> nativeFrames = walker.walk(s -> in walk()
DBasic.java135 static final StackWalker walker = field in Basic.ConstructorNewInstance
139 testFramesOrReflectionFrames = walker.walk(this::parse); in ConstructorNewInstance()
223 StackWalker walker = StackWalker.getInstance(RETAIN_CLASS_REFERENCE); in walk() local
224 result = walker.walk(s -> s.limit(limit).collect(Collectors.toList())); in walk()
DLocalsAndOperands.java250 private StackWalker walker; field in LocalsAndOperands.KnownLocalsTester
253 this.walker = extendedWalker; in KnownLocalsTester()
268 return walker.walk(s -> in testLocalsUnused()
285 StackFrame[] frames = walker.walk(s -> in testLocalsKeepAlive()
302 StackFrame[] frames = walker.walk(s -> in testLocalsKeepAliveArgs()
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeIterator.java51 private final FileTreeWalker walker; field in FileTreeIterator
70 this.walker = new FileTreeWalker(Arrays.asList(options), maxDepth); in FileTreeIterator()
71 this.next = walker.walk(start); in FileTreeIterator()
83 FileTreeWalker.Event ev = walker.next(); in fetchNextIfNeeded()
94 ev = walker.next(); in fetchNextIfNeeded()
101 if (!walker.isOpen()) in hasNext()
109 if (!walker.isOpen()) in next()
121 walker.close(); in close()
DFiles.java2661 try (FileTreeWalker walker = new FileTreeWalker(options, maxDepth)) {
2662 FileTreeWalker.Event ev = walker.walk(start);
2684 walker.pop();
2703 walker.skipRemainingSiblings();
2706 ev = walker.next();
/libcore/ojluni/src/main/java/java/lang/
DStackStreamFactory.java88 … makeStackTraverser(StackWalker walker, Function<? super Stream<StackFrame>, ? extends T> function) in makeStackTraverser() argument
90 if (walker.hasLocalsOperandsOption()) in makeStackTraverser()
91 return new LiveStackInfoTraverser<>(walker, function); in makeStackTraverser()
93 return new StackFrameTraverser<>(walker, function); in makeStackTraverser()
99 static CallerClassFinder makeCallerFinder(StackWalker walker) { in makeCallerFinder() argument
100 return new CallerClassFinder(walker); in makeCallerFinder()
122 protected final StackWalker walker; field in StackStreamFactory.AbstractStackWalker
133 protected AbstractStackWalker(StackWalker walker, int mode) { in AbstractStackWalker() argument
134 this(walker, mode, Integer.MAX_VALUE); in AbstractStackWalker()
136 protected AbstractStackWalker(StackWalker walker, int mode, int maxDepth) { in AbstractStackWalker() argument
[all …]
DStackFrameInfo.java57 StackFrameInfo(StackWalker walker) { in StackFrameInfo() argument
58 this.retainClassRef = walker.retainClassRef; in StackFrameInfo()
DLiveStackFrameInfo.java34 LiveStackFrameInfo(StackWalker walker) { in LiveStackFrameInfo() argument
35 super(walker); in LiveStackFrameInfo()
/libcore/luni/src/test/dex_src/libcore/java/lang/stackwalker/
DTest1.java32 StackWalker walker = StackWalker.getInstance(); in invokeWalker() local
33 return walker.walk(s -> s.collect(toList())); in invokeWalker()