File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 4949import org .graalvm .collections .EconomicSet ;
5050import org .graalvm .collections .Equivalence ;
5151
52- import com .oracle .truffle .api .CompilerDirectives ;
5352import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
5453import com .oracle .truffle .api .object .DynamicObject ;
5554import 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 );
You can’t perform that action at this time.
0 commit comments