-
Notifications
You must be signed in to change notification settings - Fork 207
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
migrate ndk reports for the new threads property #1376
Merged
lemnik
merged 2 commits into
integration/ROAD-1307/capture-ndk-thread-states
from
PLAT-7237/migrate-ndk-reports-for-threads
Sep 17, 2021
Merged
migrate ndk reports for the new threads property #1376
lemnik
merged 2 commits into
integration/ROAD-1307/capture-ndk-thread-states
from
PLAT-7237/migrate-ndk-reports-for-threads
Sep 17, 2021
Conversation
This file contains 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
fractalwrench
approved these changes
Sep 16, 2021
One other comment - it'd be good to ensure this has an entry in the changelog |
lemnik
added a commit
that referenced
this pull request
Sep 28, 2021
* feat(threads): add `bsg_thread` to the NDK plugin (#1371) * migrate ndk reports for the new threads property (#1376) * feat(threads): add `bsg_thread` to the NDK plugin * feat(thread state): migrate v5 ndk reports to the new v6 * Capture native thread states (#1384) * feat(thread state): capture and report native thread states in NDK crashes * fix(native threads): native threads obey `Configuration.sendThreads` * test(native threads): test scenarios for native thread reporting * fix(native threads): map native thread-status codes to a descriptive string * fix: updated CHANGELOG for native thread state reporting
lemnik
added a commit
that referenced
this pull request
Sep 29, 2021
* docs: correct changelog entry * test: remove flaky test case * Capture and report `Thread.state` for Android Runtime threads (#1372) * feat(threads): capture and report `Thread.state` for Android Runtime threads * fix(thread state): added nullability annotation to `Thread.State.getDescriptor` * feat(unity): allow Client to be initialised with the Notifier details for reporting (#1386) * Capture ndk thread states (#1390) * feat(threads): add `bsg_thread` to the NDK plugin (#1371) * migrate ndk reports for the new threads property (#1376) * feat(threads): add `bsg_thread` to the NDK plugin * feat(thread state): migrate v5 ndk reports to the new v6 * Capture native thread states (#1384) * feat(thread state): capture and report native thread states in NDK crashes * fix(native threads): native threads obey `Configuration.sendThreads` * test(native threads): test scenarios for native thread reporting * fix(native threads): map native thread-status codes to a descriptive string * fix: updated CHANGELOG for native thread state reporting * v5.14.0 * v5.14.0 - Changelog update Co-authored-by: fractalwrench <fractalwrench@gmail.com>
Merged
lemnik
added a commit
that referenced
this pull request
Sep 30, 2021
* docs: correct changelog entry * test: remove flaky test case * Capture and report `Thread.state` for Android Runtime threads (#1372) * feat(threads): capture and report `Thread.state` for Android Runtime threads * fix(thread state): added nullability annotation to `Thread.State.getDescriptor` * feat(unity): allow Client to be initialised with the Notifier details for reporting (#1386) * Capture ndk thread states (#1390) * feat(threads): add `bsg_thread` to the NDK plugin (#1371) * migrate ndk reports for the new threads property (#1376) * feat(threads): add `bsg_thread` to the NDK plugin * feat(thread state): migrate v5 ndk reports to the new v6 * Capture native thread states (#1384) * feat(thread state): capture and report native thread states in NDK crashes * fix(native threads): native threads obey `Configuration.sendThreads` * test(native threads): test scenarios for native thread reporting * fix(native threads): map native thread-status codes to a descriptive string * fix: updated CHANGELOG for native thread state reporting * v5.14.0 * v5.14.0 - Changelog update Co-authored-by: fractalwrench <fractalwrench@gmail.com> Co-authored-by: fractalwrench <fractalwrench@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Goal
Ensure that events stored by previous versions of the NDK plugin can be migrated to the new version, which includes space allocated for the
bsg_thread
structures.Design
As the new fields are at the end of the
bugsnag_event
structure - this migration is a simple copy operation (usingmemcpy
) to allow for the expanded space where the threads will be stored. As we are usingcalloc
no further action is required to zero thethread_count
.Testing
Manually tested in the example app, and added migration unit tests.