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
ref: move user_consent to sentry_run_t for thread-safe access
Move require_user_consent and user_consent from sentry_options_t to
sentry_run_t as atomic longs. Add two helpers on sentry_run_t:
* sentry__run_should_skip_upload() — lock-free consent check the
batcher (and future workers) can call directly through their
refcounted run pointer, replacing the fragile raw long* into
options.
* sentry__run_load_user_consent() — loads the persisted consent file
(`<database>/user-consent`) into the run using an atomic store, so
callers outside the options lock (e.g. future crash-time consent
refreshes) can update it safely while worker threads read it.
Pure refactor: only existing call sites (batcher) are updated. No new
consent checks or daemon changes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments