[Ikvm-commit] ikvm/runtime/openjdk sun.misc.cs,1.8,1.9
Brought to you by:
jfrijters
|
From: Jeroen F. <jfr...@us...> - 2014-11-17 09:24:18
|
Update of /cvsroot/ikvm/ikvm/runtime/openjdk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1644 Modified Files: sun.misc.cs Log Message: Fixed previous commit. When growing the array we should make sure we're actually growing it. Index: sun.misc.cs =================================================================== RCS file: /cvsroot/ikvm/ikvm/runtime/openjdk/sun.misc.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** sun.misc.cs 14 Nov 2014 15:27:46 -0000 1.8 --- sun.misc.cs 17 Nov 2014 09:24:15 -0000 1.9 *************** *** 522,525 **** --- 522,529 ---- T[] oldArray = array; T[] newArray = oldArray; + if (oldArray.Length >= newSize) + { + return; + } Array.Resize(ref newArray, newSize); if (Interlocked.CompareExchange(ref array, newArray, oldArray) == oldArray) |