mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-1154: Trying to resolve yet another trace-related deadlock
This commit is contained in:
parent
fa4a390309
commit
c8316abaaa
1 changed files with 4 additions and 2 deletions
|
@ -524,7 +524,8 @@ public class DBTrace extends DBCachedDomainObjectAdapter implements Trace, Trace
|
|||
}
|
||||
|
||||
@Override
|
||||
public DBTraceProgramView getFixedProgramView(long snap) {
|
||||
// NOTE: addListener synchronizes on this and might generate callbacks immediately
|
||||
public synchronized DBTraceProgramView getFixedProgramView(long snap) {
|
||||
// NOTE: The new viewport will need to read from the time manager during init
|
||||
try (LockHold hold = lockRead()) {
|
||||
synchronized (fixedProgramViews) {
|
||||
|
@ -538,7 +539,8 @@ public class DBTrace extends DBCachedDomainObjectAdapter implements Trace, Trace
|
|||
}
|
||||
|
||||
@Override
|
||||
public DBTraceVariableSnapProgramView createProgramView(long snap) {
|
||||
// NOTE: Ditto getFixedProgramView
|
||||
public synchronized DBTraceVariableSnapProgramView createProgramView(long snap) {
|
||||
// NOTE: The new viewport will need to read from the time manager during init
|
||||
try (LockHold hold = lockRead()) {
|
||||
synchronized (programViews) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue