Skip to content

Commit a7c55cd

Browse files
committed
Adding @TruffleBoundary
1 parent f7ee446 commit a7c55cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MarshalModuleBuiltins.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ private void writeBytes(byte[] bytes, int version, DataOutputStream buffer) {
229229
}
230230
}
231231

232-
// private void writeShort(short x, int version, DataOutputStream buffer) {
233-
// writeByte((char) (x & 0xff), version, buffer);
234-
// writeByte((char) ((x >> 8) & 0xff), version, buffer);
235-
// }
232+
// private void writeShort(short x, int version, DataOutputStream buffer) {
233+
// writeByte((char) (x & 0xff), version, buffer);
234+
// writeByte((char) ((x >> 8) & 0xff), version, buffer);
235+
// }
236236

237237
private void writeInt(int v, @SuppressWarnings("unused") int version, DataOutputStream buffer) {
238238
try {
@@ -605,6 +605,7 @@ private PFrozenSet readFrozenSet(int depth) {
605605
return factory().createFrozenSet(newStorage);
606606
}
607607

608+
@TruffleBoundary
608609
private Object readObject(int depth) {
609610
if (depth >= MAX_MARSHAL_STACK_DEPTH) {
610611
throw raise(ValueError, "Maximum marshal stack depth");

0 commit comments

Comments
 (0)