Home / Function/ testStackOverFlowChainedFuturesA() — netty Function Reference

testStackOverFlowChainedFuturesA() — netty Function Reference

Architecture documentation for the testStackOverFlowChainedFuturesA() function in DefaultPromiseTest.java from the netty codebase.

Function java Buffer Telemetry calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  2c419d06_5fff_e041_a778_bbd0bca5ea10["testStackOverFlowChainedFuturesA()"]
  18d135a2_101c_bae7_e68f_dd4660e1fb75["DefaultPromiseTest"]
  2c419d06_5fff_e041_a778_bbd0bca5ea10 -->|defined in| 18d135a2_101c_bae7_e68f_dd4660e1fb75
  f4529a19_5735_b09f_69b7_721196b5ede6["testStackOverflowWithImmediateEventExecutorA()"]
  f4529a19_5735_b09f_69b7_721196b5ede6 -->|calls| 2c419d06_5fff_e041_a778_bbd0bca5ea10
  ddc20803_8c6f_f526_ad36_f7ff701a4bb8["testNoStackOverflowWithDefaultEventExecutorA()"]
  ddc20803_8c6f_f526_ad36_f7ff701a4bb8 -->|calls| 2c419d06_5fff_e041_a778_bbd0bca5ea10
  8a5571f5_2006_3c17_8a8a_593a884241a7["execute()"]
  2c419d06_5fff_e041_a778_bbd0bca5ea10 -->|calls| 8a5571f5_2006_3c17_8a8a_593a884241a7
  91d7c04c_78df_5079_c536_a87d3e68b6fb["run()"]
  2c419d06_5fff_e041_a778_bbd0bca5ea10 -->|calls| 91d7c04c_78df_5079_c536_a87d3e68b6fb
  style 2c419d06_5fff_e041_a778_bbd0bca5ea10 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java lines 397–418

    private static void testStackOverFlowChainedFuturesA(int promiseChainLength, final EventExecutor executor,
                                                         boolean runTestInExecutorThread)
            throws InterruptedException {
        final Promise<Void>[] p = new DefaultPromise[promiseChainLength];
        final CountDownLatch latch = new CountDownLatch(promiseChainLength);

        if (runTestInExecutorThread) {
            executor.execute(new Runnable() {
                @Override
                public void run() {
                    testStackOverFlowChainedFuturesA(executor, p, latch);
                }
            });
        } else {
            testStackOverFlowChainedFuturesA(executor, p, latch);
        }

        assertTrue(latch.await(2, TimeUnit.SECONDS));
        for (int i = 0; i < p.length; ++i) {
            assertTrue(p[i].isSuccess(), "index " + i);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testStackOverFlowChainedFuturesA() do?
testStackOverFlowChainedFuturesA() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java.
Where is testStackOverFlowChainedFuturesA() defined?
testStackOverFlowChainedFuturesA() is defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java at line 397.
What does testStackOverFlowChainedFuturesA() call?
testStackOverFlowChainedFuturesA() calls 2 function(s): execute, run.
What calls testStackOverFlowChainedFuturesA()?
testStackOverFlowChainedFuturesA() is called by 2 function(s): testNoStackOverflowWithDefaultEventExecutorA, testStackOverflowWithImmediateEventExecutorA.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free