mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GT-2845: Storing original program bytes in the program database.
This commit is contained in:
parent
d95fd43762
commit
0792417979
73 changed files with 7129 additions and 2575 deletions
|
@ -49,7 +49,7 @@ class DomainObjectChangeSupport {
|
|||
DomainObjectChangeSupport(DomainObject src, int timeInterval, int bufsize, Lock lock) {
|
||||
|
||||
this.src = src;
|
||||
this.domainObjectLock = lock;
|
||||
this.domainObjectLock = Objects.requireNonNull(lock);
|
||||
changesQueue = new ArrayList<>(bufsize);
|
||||
|
||||
listeners = WeakDataStructureFactory.createCopyOnWriteWeakSet();
|
||||
|
@ -127,7 +127,7 @@ class DomainObjectChangeSupport {
|
|||
|
||||
void flush() {
|
||||
Thread lockOwner = domainObjectLock.getOwner();
|
||||
if (domainObjectLock != null && lockOwner == Thread.currentThread()) {
|
||||
if (lockOwner == Thread.currentThread()) {
|
||||
|
||||
/*
|
||||
* We have decided that flushing events with a lock can lead to deadlocks. There
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue