You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d49a2c5
Browse filesBrowse the repository at this point in the historyBrowse files
diagnostics_channel: fix USDT hot path under startup snapshot
The publish() hot path captured the probe semaphore Uint16Array
view at module load. This module is baked into the startup
snapshot, and the view's native backing store cannot be serialized:
the captured view is detached when the snapshot is deserialized, so
publish() never called emitPublishProbe() in snapshot builds and
the dc__publish probe never fired for JavaScript publishes even
with a tracer attached. Caught by the new bpftrace CI job.
Resolve the view lazily from the binding (once per process; 'null'
marks a USDT-less build) and add positive-path coverage to
test-diagnostics-channel-usdt.js: force the semaphore and verify
that publish() calls emitPublishProbe() for string-named channels,
never for symbol-named ones, and not when the semaphore is 0.
Signed-off-by: Bryan English <bryan@bryanenglish.com>
0 commit comments