Skip to content

Commit 48dfab8

Browse files
committed
[Truffle] No more a race condition since synchronizing on liveObjects.
1 parent 0d15b09 commit 48dfab8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

truffle/src/main/java/org/jruby/truffle/runtime/subsystems/ObjectSpaceManager.java

-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ public static interface ObjectGraphVisitor {
196196
public Map<Long, RubyBasicObject> collectLiveObjects() {
197197
RubyNode.notDesignedForCompilation();
198198

199-
// TODO(CS): probably a race condition here if multiple threads try to collect at the same time
200-
201199
liveObjects = new HashMap<>();
202200

203201
visitor = new ObjectGraphVisitor() {

0 commit comments

Comments
 (0)