closingStreamWithChildrenDoesNotCauseConcurrentModification() — netty Function Reference
Architecture documentation for the closingStreamWithChildrenDoesNotCauseConcurrentModification() function in WeightedFairQueueByteDistributorDependencyTreeTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e84620de_0831_789e_d7e8_6378701b5251["closingStreamWithChildrenDoesNotCauseConcurrentModification()"] f59fdba5_c411_919e_8d09_ef11c6679e0d["WeightedFairQueueByteDistributorDependencyTreeTest"] e84620de_0831_789e_d7e8_6378701b5251 -->|defined in| f59fdba5_c411_919e_8d09_ef11c6679e0d style e84620de_0831_789e_d7e8_6378701b5251 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java lines 60–74
@Test
public void closingStreamWithChildrenDoesNotCauseConcurrentModification() throws Http2Exception {
// We create enough streams to wrap around the child array. We carefully craft the stream ids so that they hash
// codes overlap with respect to the child collection. If the implementation is not careful this may lead to a
// concurrent modification exception while promoting all children to the connection stream.
final Http2Stream streamA = connection.local().createStream(1, false);
final int numStreams = INITIAL_CHILDREN_MAP_SIZE - 1;
for (int i = 0, streamId = 3; i < numStreams; ++i, streamId += INITIAL_CHILDREN_MAP_SIZE) {
final Http2Stream stream = connection.local().createStream(streamId, false);
setPriority(stream.id(), streamA.id(), DEFAULT_PRIORITY_WEIGHT, false);
}
assertEquals(INITIAL_CHILDREN_MAP_SIZE, connection.numActiveStreams());
streamA.close();
assertEquals(numStreams, connection.numActiveStreams());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does closingStreamWithChildrenDoesNotCauseConcurrentModification() do?
closingStreamWithChildrenDoesNotCauseConcurrentModification() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java.
Where is closingStreamWithChildrenDoesNotCauseConcurrentModification() defined?
closingStreamWithChildrenDoesNotCauseConcurrentModification() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java at line 60.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free