mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 07:18:16 +08:00
GP-2595: Make TraceTimeViewport receives updates directly rather than via change listener.
This commit is contained in:
@@ -219,6 +219,10 @@ public class ListenerMap<K, P, V extends P> {
|
||||
}
|
||||
|
||||
protected Map<K, V> createMap() {
|
||||
/**
|
||||
* TODO: This is potentially flawed: The removal modifies the map in place. It does not
|
||||
* adhere to "copy on write." It does have its own concurrency considerations, though.
|
||||
*/
|
||||
CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
|
||||
.removalListener(this::notifyRemoved)
|
||||
.weakValues()
|
||||
|
||||
Reference in New Issue
Block a user