geforkt von Mirrors/Paper
Fixed LongHashset incorrectly using read lock for popAll, and made it use write lock. This fixes BUKKIT-509
Dieser Commit ist enthalten in:
Ursprung
95a72d1c59
Commit
d3b4375d31
@ -131,7 +131,7 @@ public class LongHashset extends LongHash {
|
||||
|
||||
public long[] popAll() {
|
||||
int index = 0;
|
||||
rl.lock();
|
||||
wl.lock();
|
||||
try {
|
||||
long[] ret = new long[this.count];
|
||||
for (long[][] outer : this.values) {
|
||||
@ -150,7 +150,7 @@ public class LongHashset extends LongHash {
|
||||
count = 0;
|
||||
return ret;
|
||||
} finally {
|
||||
rl.unlock();
|
||||
wl.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren