mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 05:38:48 +08:00
GP-0: Fix timing issue in emulator service and p-code stepper test.
This commit is contained in:
+4
-1
@@ -135,7 +135,10 @@ public abstract class AnnotatedSleighUseropLibrary<T> implements SleighUseropLib
|
||||
Class<T> opType = getOperandType();
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
Class<? extends AnnotatedSleighUseropLibrary<T>> cls = (Class) this.getClass();
|
||||
Set<Method> methods = CACHE_BY_CLASS.computeIfAbsent(cls, __ -> collectDefinitions(cls));
|
||||
Set<Method> methods;
|
||||
synchronized (CACHE_BY_CLASS) {
|
||||
methods = CACHE_BY_CLASS.computeIfAbsent(cls, __ -> collectDefinitions(cls));
|
||||
}
|
||||
for (Method m : methods) {
|
||||
ops.put(m.getName(), new AnnotatedSleighUseropDefinition<>(this, opType, lookup, m));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user