Skip to content

Commit

Permalink
[Truffle] Make them local variables, not fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Feb 20, 2015
1 parent 39a810d commit 33d537b
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -145,16 +145,13 @@ public static interface ObjectGraphVisitor {

}

private Map<Long, RubyBasicObject> liveObjects;
private ObjectGraphVisitor visitor;

@TruffleBoundary
public Map<Long, RubyBasicObject> collectLiveObjects() {
RubyNode.notDesignedForCompilation();

liveObjects = new HashMap<>();
final Map<Long, RubyBasicObject> liveObjects = new HashMap<>();

visitor = new ObjectGraphVisitor() {
final ObjectGraphVisitor visitor = new ObjectGraphVisitor() {

@Override
public boolean visit(RubyBasicObject object) {
Expand Down

0 comments on commit 33d537b

Please sign in to comment.