Skip to content

Commit 99cc520

Browse files
markushiclaude
andcommitted
ref(anr): Clean up ThreadDumpParser
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6ecc3b3 commit 99cc520

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sentry-android-core/src/main/java/io/sentry/android/core/internal/threaddump/ThreadDumpParser.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,20 @@ private SentryThread parseThread(final @NotNull Lines lines) {
217217
}
218218
}
219219
} else if (matches(beginUnmanagedNativeThreadRe, line.text)) {
220-
final Long parsedSysTid = getLong(beginUnmanagedNativeThreadRe, 3, null);
221-
if (parsedSysTid == null) {
220+
final Long sysTid = getLong(beginUnmanagedNativeThreadRe, 3, null);
221+
if (sysTid == null) {
222222
options.getLogger().log(SentryLevel.DEBUG, "No thread id in the dump, skipping thread.");
223223
// tid is required by our protocol
224224
return null;
225225
}
226-
sentryThread.setId(parsedSysTid);
226+
sentryThread.setId(sysTid);
227227
sentryThread.setName(beginUnmanagedNativeThreadRe.group(1));
228-
if (parsedSysTid.equals(processId)) {
228+
if (sysTid.equals(processId)) {
229229
sentryThread.setMain(true);
230230
}
231231
}
232232

233-
// thread stacktrace (also captures parsedSysTid for managed threads from the "| sysTid=" line)
233+
// thread stacktrace
234234
final SentryStackTrace stackTrace = parseStacktrace(lines, sentryThread);
235235
final List<SentryStackFrame> frames = stackTrace.getFrames();
236236
if (frames == null || frames.isEmpty()) {

0 commit comments

Comments
 (0)