Skip to content

Commit

Permalink
Check exact invocation
Browse files Browse the repository at this point in the history
Make all VarHandle(s) conform to exact invocation.
  • Loading branch information
alanpaxton committed Mar 13, 2023
1 parent 50fd059 commit a1f158f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions java/src/main/java/org/rocksdb/FFILayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public static class InputSlice {
)
.withName("input_slice");

static final VarHandle Data = Layout.varHandle(MemoryLayout.PathElement.groupElement("data"));
static final VarHandle Data = Layout.varHandle(MemoryLayout.PathElement.groupElement("data")).withInvokeExactBehavior();

static final VarHandle Size = Layout.varHandle(MemoryLayout.PathElement.groupElement("size"));
static final VarHandle Size = Layout.varHandle(MemoryLayout.PathElement.groupElement("size")).withInvokeExactBehavior();
};

public static class PinnableSlice {
Expand All @@ -43,15 +43,15 @@ public static class PinnableSlice {
ValueLayout.JAVA_BOOLEAN.withName("is_pinned"))
.withName("pinnable_slice");

static final VarHandle Data = Layout.varHandle(MemoryLayout.PathElement.groupElement("data"));
static final VarHandle Data = Layout.varHandle(MemoryLayout.PathElement.groupElement("data")).withInvokeExactBehavior();

static final VarHandle Size = Layout.varHandle(MemoryLayout.PathElement.groupElement("size"));
static final VarHandle Size = Layout.varHandle(MemoryLayout.PathElement.groupElement("size")).withInvokeExactBehavior();

static final VarHandle PinnableSlice =
Layout.varHandle(MemoryLayout.PathElement.groupElement("pinnable_slice"));
Layout.varHandle(MemoryLayout.PathElement.groupElement("pinnable_slice")).withInvokeExactBehavior();

static final VarHandle IsPinned =
Layout.varHandle(MemoryLayout.PathElement.groupElement("is_pinned"));
Layout.varHandle(MemoryLayout.PathElement.groupElement("is_pinned")).withInvokeExactBehavior();
};

public static class GetParamsSegment {
Expand All @@ -70,11 +70,11 @@ public static class OutputSlice {
ValueLayout.JAVA_LONG.withName("capacity"), ValueLayout.JAVA_LONG.withName("size"))
.withName("output_slice");

static final VarHandle Data = Layout.varHandle(MemoryLayout.PathElement.groupElement("data"));
static final VarHandle Data = Layout.varHandle(MemoryLayout.PathElement.groupElement("data")).withInvokeExactBehavior();

static final VarHandle Capacity =
Layout.varHandle(MemoryLayout.PathElement.groupElement("capacity"));

static final VarHandle Size = Layout.varHandle(MemoryLayout.PathElement.groupElement("size"));
static final VarHandle Size = Layout.varHandle(MemoryLayout.PathElement.groupElement("size")).withInvokeExactBehavior();
}
}

0 comments on commit a1f158f

Please sign in to comment.