shithub: mc

Download patch

ref: 597b6cc67544ac7470543213efc3c15ae23ded3c
parent: 23896ee4273d593cf3d32c00713c6f55e9b1369e
author: Ori Bernstein <[email protected]>
date: Tue Jul 24 19:00:03 EDT 2012

Test the sizes more thoroughly.

--- a/hello.myr
+++ b/hello.myr
@@ -3,13 +3,16 @@
 
 const main = {
 	var x : byte*[1024]
+	var sz
 	var i
 
-	for i = 0; i < 1024; i++
-		x[i] = std.bytealloc(32)
-	;;
-	for i = 0; i < 1024; i++
-		std.bytefree(x[i], 32)
+	for sz = 1; sz < 10000; sz++
+		for i = 0; i < 1024; i++
+			x[i] = std.bytealloc(sz)
+		;;
+		for i = 0; i < 1024; i++
+			std.bytefree(x[i], sz)
+		;;
 	;;
 	std.write(1, "Hello world\n")
 }