Skip to content

Commit d2d74ef

Browse files
jchaloubulasevich
authored andcommitted
Make EventBinding a context heap boundary.
(cherry picked from commit c788d539327f22bfad8f18de6fc9bc3591221cdf)
1 parent 4e39f63 commit d2d74ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/ObjectSizeCalculator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
import com.oracle.truffle.api.dsl.NodeFactory;
7373
import com.oracle.truffle.api.impl.DefaultTruffleRuntime;
7474
import com.oracle.truffle.api.instrumentation.AllocationReporter;
75+
import com.oracle.truffle.api.instrumentation.EventBinding;
7576
import com.oracle.truffle.api.instrumentation.ExecutionEventListener;
7677
import com.oracle.truffle.api.instrumentation.TruffleInstrument;
7778
import com.oracle.truffle.api.io.TruffleProcessBuilder;
@@ -351,6 +352,8 @@ private static boolean isContextHeapBoundary(APIAccess api, Object obj) {
351352

352353
(obj instanceof ContextLocal) ||
353354
(obj instanceof ContextThreadLocal) ||
355+
356+
(obj instanceof EventBinding<?>) ||
354357
/*
355358
* For safety, copy the asserts here in case asserts are disabled.
356359
*/

0 commit comments

Comments
 (0)