mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/GP-1887_d-millar_temp_fix_for_thread_lifespans--SQUASHED' into patch
This commit is contained in:
commit
e9797d4526
1 changed files with 7 additions and 1 deletions
|
@ -256,8 +256,14 @@ public class TraceObjectManager {
|
|||
recorder.createSnapshot(traceThread + " started", traceThread, null);
|
||||
try (UndoableTransaction tid =
|
||||
UndoableTransaction.start(recorder.getTrace(), "Adjust thread creation", true)) {
|
||||
long existing = traceThread.getCreationSnap();
|
||||
if (existing == Long.MIN_VALUE) {
|
||||
traceThread.setCreationSnap(recorder.getSnap());
|
||||
}
|
||||
else {
|
||||
traceThread.setDestructionSnap(Long.MAX_VALUE);
|
||||
}
|
||||
}
|
||||
catch (DuplicateNameException e) {
|
||||
throw new AssertionError(e); // Should be shrinking
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue