Skip to content

Commit

Permalink
[TR-266] comments next iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
jjfumero committed Apr 3, 2019
1 parent 0311506 commit a357b66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public int read(final Object ref, int[] events, boolean useDeps) {
if (DEBUG) {
debug("fieldBuffer: read - field=%s, parent=0x%x, child=0x%x", field, ref.hashCode(), getFieldValue(ref).hashCode());
}
// XXX: Offset 0
// TODO: reading with offset != 0
int event = objectBuffer.read(getFieldValue(ref), 0, events, useDeps);
return event;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private OCLByteBuffer prepareArrayHeader() {

@Override
public void read(final Object value) {
// XXX: offset null
// TODO: reading with offset != 0
read(value, 0, null, false);
}

Expand Down Expand Up @@ -374,7 +374,7 @@ public void write(final Object value) {
throw new TornadoRuntimeException("[ERROR] data is NULL");
}
buildArrayHeader(Array.getLength(array)).write();
// XXX: Offset 0
// TODO: Writing with offset != 0
writeArrayData(toBuffer(), bufferOffset + arrayHeaderSize, bytesToAllocate - arrayHeaderSize, array, 0, null);
onDevice = true;
}
Expand Down

0 comments on commit a357b66

Please sign in to comment.