Skip to content

Commit abef233

Browse files
committed
Add missing TruffleBoundary.
1 parent 7965c85 commit abef233

File tree

1 file changed

+1
-2
lines changed
  • graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime

1 file changed

+1
-2
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/JSAgent.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
import org.graalvm.collections.EconomicSet;
5050
import org.graalvm.collections.Equivalence;
5151

52-
import com.oracle.truffle.api.CompilerDirectives;
5352
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
5453
import com.oracle.truffle.api.object.DynamicObject;
5554
import com.oracle.truffle.js.runtime.JSAgentWaiterList.JSAgentWaiterListEntry;
@@ -201,9 +200,9 @@ public final boolean interopBoundaryExit() {
201200
return --interopCallStackDepth == 0;
202201
}
203202

203+
@TruffleBoundary
204204
public boolean addWeakRefTargetToSet(Object target) {
205205
if (weakRefTargets == null) {
206-
CompilerDirectives.transferToInterpreterAndInvalidate();
207206
weakRefTargets = EconomicSet.create(Equivalence.IDENTITY);
208207
}
209208
return weakRefTargets.add(target);

0 commit comments

Comments
 (0)