-
-
Notifications
You must be signed in to change notification settings - Fork 215
[WIP] perf: use rwlock for scope data access #1877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
2910fcb
refactor(scope): hide direct data access
jpnurmi 592cfe0
WIP: observers
jpnurmi de089e3
feat(sync): add platform rwlock primitive
jpnurmi 2db6aa8
refactor(sync): make rwlock operations inline
jpnurmi 85ea15b
refactor(scope): guard simple fields with rwlock
jpnurmi 1cebda0
refactor(scope): retain user and fingerprint values safely
jpnurmi ff0b6d4
refactor(scope): store string fields as values
jpnurmi 691d2ac
refactor(scope): move locked payload into scope data
jpnurmi e0436b5
refactor(scope): hide direct scope data access
jpnurmi af5cffd
ref containers
jpnurmi 88e6162
breadcrumbs
jpnurmi 22476af
trace_context
jpnurmi 95a44ac
propagation_context
jpnurmi 48f09d3
dsc
jpnurmi 7ab213c
span/transaction_object
jpnurmi 59ae8b0
restore
jpnurmi 7356f20
lock observers
jpnurmi 777bba3
finally :D
jpnurmi f6e3d85
fix formatting
jpnurmi 2e9f497
fix(scope): Keep global scope alive during access
jpnurmi 5aaba3d
restore locks for attachments
jpnurmi d530e7a
clone (cow) attachments guard against concurrent modifications
jpnurmi 3c2dcd5
clean up
jpnurmi 1452b9e
fix concurrent init
jpnurmi 5344fd9
breadcrumbs: fix use-after-free
jpnurmi 28113fd
fix(attachments): Notify backends through scope observers
jpnurmi ba539a7
fix cleanup_observers
jpnurmi fd41b34
load
jpnurmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Startup failure leaks native run path
Medium Severity
native_backend_startupclonesrun_pathonto backend state, then on IPC or context-setup failure itsentry_frees that state withoutsentry__path_free. The cloned path is leaked, andscope_observer->datacan still point at the freed state.Additional Locations (2)
src/backends/sentry_backend_native.c#L275-L282src/backends/sentry_backend_native.c#L287-L294Reviewed by Cursor Bugbot for commit fd41b34. Configure here.