Issue 48: Crash on Windows 7 in release mode, but not in debug mode
Status:  Fixed
Owner: ----
Closed:  Aug 2010
Reported by heinz.ho...@googlemail.com, Aug 2, 2010
What steps will reproduce the problem?

First of all, this is not a real world scenario, but it could help to unveil a hard to find bug.

I did some performance tests with long loops, they work fine if compiled in debug mode, but crashes in release mode. It seems that this depends on the iteration count, because reducing it to 10000 leads to success on my system (Windows 7). The produced surce code for the loop for debug mode and release mode is the same. Maybe this is GC-related?

class Test 
{

	public static function main() 
	{
		var f = function (i:Int) return i;
		var ints = [];
		for (i in 0...100000) {
			ints.push(f(i));
		}
		
	}
	
	
}



Aug 3, 2010
Project Member #1 gameh...@gmail.com
This come from the optimizer storing offset pointers on the stack, confusing the GC.  I have dropped the optimization from -O2 to -Ot, which seems to fix the problem without reducing performance by a measurable amount.
Status: Fixed