mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-18 00:20:10 +00:00
Merge remote-tracking branch 'origin/GP-0_Dan_removeSyserrRStarTreeMapTest'
This commit is contained in:
commit
fbacc12f69
@ -877,7 +877,6 @@ public class RStarTreeMapTest {
|
|||||||
try (UndoableTransaction tid = UndoableTransaction.start(obj, "AddRandom", true)) {
|
try (UndoableTransaction tid = UndoableTransaction.start(obj, "AddRandom", true)) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Entry<IntRect, String> ent : list) {
|
for (Entry<IntRect, String> ent : list) {
|
||||||
System.err.println("Adding (sub) " + i++);
|
|
||||||
obj.map.put(ent.getKey(), ent.getValue());
|
obj.map.put(ent.getKey(), ent.getValue());
|
||||||
// Note, underlying tree is not synchronized, but map is
|
// Note, underlying tree is not synchronized, but map is
|
||||||
try (LockHold hold = LockHold.lock(obj.getReadWriteLock().readLock())) {
|
try (LockHold hold = LockHold.lock(obj.getReadWriteLock().readLock())) {
|
||||||
@ -906,7 +905,6 @@ public class RStarTreeMapTest {
|
|||||||
public void testIntegrityWith2000VerticallyStackedRects() throws Exception {
|
public void testIntegrityWith2000VerticallyStackedRects() throws Exception {
|
||||||
try (UndoableTransaction tid = UndoableTransaction.start(obj, "AddVertical", true)) {
|
try (UndoableTransaction tid = UndoableTransaction.start(obj, "AddVertical", true)) {
|
||||||
for (int i = 0; i < 2000; i++) {
|
for (int i = 0; i < 2000; i++) {
|
||||||
System.err.println("Adding " + i);
|
|
||||||
obj.map.put(rect(0, 10, i, i + 1), "Ent" + i);
|
obj.map.put(rect(0, 10, i, i + 1), "Ent" + i);
|
||||||
// Note, underlying tree is not synchronized, but map is
|
// Note, underlying tree is not synchronized, but map is
|
||||||
/*try (LockHold hold = LockHold.lock(obj.getReadWriteLock().readLock())) {
|
/*try (LockHold hold = LockHold.lock(obj.getReadWriteLock().readLock())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user