[Swift-commit] r6509 - branches/release-0.94/src/org/griphyn/vdl/karajan/lib
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Sat May 18 20:41:36 CDT 2013
Author: hategan
Date: 2013-05-18 20:41:36 -0500 (Sat, 18 May 2013)
New Revision: 6509
Modified:
branches/release-0.94/src/org/griphyn/vdl/karajan/lib/SetWaitCount.java
Log:
careful about static mappers when checking for closed variables when setting wait count
Modified: branches/release-0.94/src/org/griphyn/vdl/karajan/lib/SetWaitCount.java
===================================================================
--- branches/release-0.94/src/org/griphyn/vdl/karajan/lib/SetWaitCount.java 2013-05-16 18:05:03 UTC (rev 6508)
+++ branches/release-0.94/src/org/griphyn/vdl/karajan/lib/SetWaitCount.java 2013-05-19 01:41:36 UTC (rev 6509)
@@ -37,7 +37,16 @@
DSHandle var = (DSHandle) PA_VAR.getValue(stack);
if (var.isClosed()) {
- throw new ExecutionException("Attempted to set a wait count for a closed variable " + var);
+ // Static mappers will close the array sizes during initialization.
+ // Such an array passed to a function assigning to elements
+ // of that array in a loop will attempt to increase the
+ // wait count. That is a legit situation to have.
+ if (var.getMapper().isStatic()) {
+ // ignore
+ }
+ else {
+ throw new ExecutionException("Attempted to set a wait count for a closed variable " + var);
+ }
}
int count = TypeUtil.toInt(OA_COUNT.getValue(stack));
More information about the Swift-commit
mailing list