[fix] ByteBuffer in the OCL event from static to non-static
Github issue
@@ -92,23 +92,19 @@ public class OCLEvent extends TornadoLogger implements Event {
private static final long[] internalBuffer = new long[2];
- private OCLEventsWrapper eventsWrapper;
private OCLCommandQueue queue;
private int localId;
private long oclEventID;
- private static final ByteBuffer buffer = ByteBuffer.allocate(8);
+ private final ByteBuffer buffer = ByteBuffer.allocate(8);
private String name;
private int status;
- static {
- buffer.order(OpenCL.BYTE_ORDER);
- }
-
OCLEvent() {
+ buffer.order(OpenCL.BYTE_ORDER);
}
OCLEvent(final OCLEventsWrapper eventsWrapper, final OCLCommandQueue queue, final int event, final long oclEventID) {
- this.eventsWrapper = eventsWrapper;
+ this();
this.queue = queue;
this.localId = event;
this.oclEventID = oclEventID;
