Skip to content

Commit

Permalink
Inline ByteBuffer into RawBytecodeHelper, and try to make it eligible…
Browse files Browse the repository at this point in the history
… for escape analysis
  • Loading branch information
liach committed Sep 3, 2024
1 parent 6c70048 commit 58ed111
Show file tree
Hide file tree
Showing 10 changed files with 142 additions and 291 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ public int size() {
return offset;
}

public ByteBuffer asByteBuffer() {
return ByteBuffer.wrap(elems, 0, offset).slice();
public RawBytecodeHelper.CodeRange bytecodeView() {
return RawBytecodeHelper.of(elems, offset);
}

public void copyTo(byte[] array, int bufferOffset) {
Expand Down

This file was deleted.

Loading

0 comments on commit 58ed111

Please sign in to comment.