From: <mt...@us...> - 2010-05-31 09:59:18
|
Revision: 14341 http://x10.svn.sourceforge.net/x10/?rev=14341&view=rev Author: mtake Date: 2010-05-31 09:59:11 +0000 (Mon, 31 May 2010) Log Message: ----------- Fix for XTENLANG-1400 Modified Paths: -------------- trunk/x10.runtime/src-java/x10/core/RailFactory.java Modified: trunk/x10.runtime/src-java/x10/core/RailFactory.java =================================================================== --- trunk/x10.runtime/src-java/x10/core/RailFactory.java 2010-05-31 08:17:10 UTC (rev 14340) +++ trunk/x10.runtime/src-java/x10/core/RailFactory.java 2010-05-31 09:59:11 UTC (rev 14341) @@ -61,15 +61,17 @@ public static <T> ValRail<T> makeValRail(Type type, int length) { Object o = type.makeArray(length); ValRail<T> array = new ValRail<T>(type, length, o); - T zero = (T) type.zeroValue(); - resetLocal(array.value, zero); + // zero clear of a new Java array is redundant. + //T zero = (T) type.zeroValue(); + //resetLocal(array.value, zero); return array; } public static <T> Rail<T> makeVarRail(Type type, int length) { Rail<T> array = new Rail<T>(type, length); - T zero = (T) type.zeroValue(); - resetLocal(array.value, zero); + // zero clear of a new Java array is redundant. + //T zero = (T) type.zeroValue(); + //resetLocal(array.value, zero); return array; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |