mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 10:10:13 +08:00
GP-1887: post-review revisions
GP-1887: reset lifespan to init create
This commit is contained in:
+7
-1
@@ -256,7 +256,13 @@ public class TraceObjectManager {
|
||||
recorder.createSnapshot(traceThread + " started", traceThread, null);
|
||||
try (UndoableTransaction tid =
|
||||
UndoableTransaction.start(recorder.getTrace(), "Adjust thread creation", true)) {
|
||||
traceThread.setCreationSnap(recorder.getSnap());
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user