GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Quic: don't mark streamCreditsInitialized volatile · netty/netty@292b9bc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-classes-quic/src/main/java/io/netty/handler/codec/quic
    • QuicheQuicChannel.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java‎

Copy file name to clipboardExpand all lines: codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ public void operationComplete(ChannelFuture future) {
184184
AtomicLongFieldUpdater.newUpdater(QuicheQuicChannel.class, "bidiStreamsLeft");
185185
private volatile long bidiStreamsLeft;
186186

187-
// Whether the cached stream credits were refreshed from quiche at least once. Before the
187+
// Whether the cached stream credits were refreshed from quiche at least once. Only updated
188+
// and accessed from the event loop thread, so it needs no synchronization. Before the
188189
// first refresh the caches are 0 even though the peer may have announced credits, so the
189190
// fail-fast check in connectStream(...) must not fire yet; a rejected implicit open in
190191
// that window is instead handled by rolling back the allocated stream id.
191-
private volatile boolean streamCreditsInitialized;
192+
private boolean streamCreditsInitialized;
192193

193194
private QuicheQuicChannel(Channel parent, boolean server, @Nullable ByteBuffer key, InetSocketAddress local,
194195
InetSocketAddress remote, boolean supportsDatagram, ChannelHandler streamHandler,

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.