From 31ca7c6b4361320c5e531a1ec3ef5326fc31ce24 Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 4 Mar 2009 20:54:29 +0000 Subject: [PATCH] Topological sort actually helps some benchmarks quite a bit --- Robust/src/Analysis/OwnershipAnalysis/OwnershipAnalysis.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Robust/src/Analysis/OwnershipAnalysis/OwnershipAnalysis.java b/Robust/src/Analysis/OwnershipAnalysis/OwnershipAnalysis.java index 97eade68..c555150d 100644 --- a/Robust/src/Analysis/OwnershipAnalysis/OwnershipAnalysis.java +++ b/Robust/src/Analysis/OwnershipAnalysis/OwnershipAnalysis.java @@ -445,8 +445,8 @@ public class OwnershipAnalysis { } } - //sortedMethodContextsToVisit = topologicalSort( methodContextsToVisit ); - //methodContextsToVisit.clear(); + sortedMethodContextsToVisit = topologicalSort( methodContextsToVisit ); + methodContextsToVisit.clear(); while( !methodContextsToVisit.isEmpty() || !sortedMethodContextsToVisit.isEmpty() ) { -- 2.34.1