Skip to content

Commit eabf737

Browse files
committed
Update PythonBufferAccessLibrary#release documentation.
1 parent 0d6e40d commit eabf737

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/buffer/PythonBufferAccessLibrary.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ public static void assertIsBuffer(Object receiver) {
100100

101101
/**
102102
* Release the buffer. Equivalent of CPython's {@code PyBuffer_Release}, but must not be called
103-
* multiple times on the same buffer.
103+
* multiple times on the same buffer. If the caller has access to a VirtualFrame
104+
* {@link #release(Object, VirtualFrame, PNodeWithRaiseAndIndirectCall)} or
105+
* {@link #release(Object, VirtualFrame, PythonContext, PythonLanguage, IndirectCallNode)} should be used.
106+
* If the caller doesn't have access to a VirtualFrame it must be ensured that an IndirectCallContext
107+
* was already created in the call path.
104108
*/
105109
public void release(@SuppressWarnings("unused") Object receiver) {
106110
}

0 commit comments

Comments
 (0)