Objects: don't lock some objects twice for no reason

This commit is contained in:
2025-04-28 23:49:45 +02:00
parent bc5f0b816c
commit 1b54830651

View File

@@ -165,7 +165,8 @@ public class JObjectManager {
}
}
for (var write : writes.entrySet()) {
toLock.add(write.getKey());
if (!readSet.containsKey(write.getKey()))
toLock.add(write.getKey());
}
Collections.sort(toLock);
for (var key : toLock) {