mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 07:28:19 +01:00
Unnecessary fences
This commit is contained in:
parent
daf83a25d1
commit
a689691873
@ -343,7 +343,6 @@ non-sealed class EventNodeImpl<T extends Event> implements EventNode<T> {
|
|||||||
final Consumer<E> listener = createConsumer();
|
final Consumer<E> listener = createConsumer();
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
this.updated = true;
|
this.updated = true;
|
||||||
VarHandle.releaseFence();
|
|
||||||
return listener;
|
return listener;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@ public final class LazyPacket implements SendablePacket {
|
|||||||
packet = this.packet;
|
packet = this.packet;
|
||||||
if (packet == null) {
|
if (packet == null) {
|
||||||
this.packet = packet = packetSupplier.get();
|
this.packet = packet = packetSupplier.get();
|
||||||
VarHandle.releaseFence();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user