[Swift-commit] r5852 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Tue Jul 17 14:04:13 CDT 2012


Author: hategan
Date: 2012-07-17 14:04:13 -0500 (Tue, 17 Jul 2012)
New Revision: 5852

Modified:
   trunk/src/org/griphyn/vdl/karajan/Monitor.java
Log:
no need for copy if getMapSafe is used

Modified: trunk/src/org/griphyn/vdl/karajan/Monitor.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Monitor.java	2012-07-17 19:01:38 UTC (rev 5851)
+++ trunk/src/org/griphyn/vdl/karajan/Monitor.java	2012-07-17 19:04:13 UTC (rev 5852)
@@ -224,11 +224,7 @@
 
 	public static void dumpVariables(PrintStream ps) {
 		ps.println("\nRegistered futures:");
-		Map<DSHandle, Future> map = FutureTracker.get().getMapSafe();
-		Map<DSHandle, Future> copy;
-		synchronized (map) {
-		    copy = new HashMap<DSHandle, Future>(map);
-		}
+		Map<DSHandle, Future> copy = FutureTracker.get().getMapSafe();
 		for (Map.Entry<DSHandle, Future> en : copy.entrySet()) {
 			Future f = en.getValue();
 			AbstractDataNode handle = (AbstractDataNode) en.getKey();




More information about the Swift-commit mailing list