Huolala Tech
Huolala Tech
Dec 31, 2025 · Fundamentals

Why Does __dispatch_barrier_waiter_redirect_or_wake Crash on iOS 14‑16? A Deep GCD Investigation

The article analyses a recurring crash in an iOS driver app caused by the __dispatch_barrier_waiter_redirect_or_wake function in libdispatch, explains the EXC_BREAKPOINT/SIGTRAP mechanism, compares libdispatch versions, reveals a premature queue release due to non‑atomic reference‑count handling, and proposes replacing GCD‑based barriers with pthread_rwlock_t to eliminate the bug.

BarrierCrashReferenceCounting
0 likes · 15 min read
Why Does __dispatch_barrier_waiter_redirect_or_wake Crash on iOS 14‑16? A Deep GCD Investigation
JavaEdge
JavaEdge
Dec 15, 2020 · Backend Development

Mastering Netty Codecs: From ByteToMessageDecoder to Fixed‑Length and Line Decoders

This guide explains how Netty handles encoding and decoding, covering abstract decoder classes, concrete implementations like ByteToMessageDecoder, ReplayingDecoder, fixed‑length and line‑based decoders, and essential reference‑count management for building robust network applications.

ByteToMessageDecoderDecoderNetty
0 likes · 6 min read
Mastering Netty Codecs: From ByteToMessageDecoder to Fixed‑Length and Line Decoders