Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
synchronize hashmap lookups
Dieser Commit ist enthalten in:
Ursprung
edb0debd16
Commit
280880d163
@ -40,7 +40,9 @@ public class LongHashtable<V> extends LongHash
|
|||||||
}
|
}
|
||||||
|
|
||||||
public V get(long key) {
|
public V get(long key) {
|
||||||
return containsKey(key) ? (V) cache.value : null;
|
synchronized(this) {
|
||||||
|
return containsKey(key) ? (V) cache.value : null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean containsKey(long key) {
|
public boolean containsKey(long key) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren