heap resize error pasted by rivo on Wed Aug 14 22:28:16 2013
(use posix extras) ;(set-gc-report! 1) (define x) (define (iter) ; (set! x '()) (let loop ((i 0) (a '())) (when (< i 5000) ; (set! x (cons (list iter (number->string i) (/ i 0.5) (/ i 0.5) (/ i 0.5) (/ i 0.5) i i i i i) x)) (loop (add1 i) (cons (list iter "aa" i i i i i i i i i i i i i i i i i i i i i) a) )))) (define n 0) (define tt (current-milliseconds)) (let loop ((t (current-milliseconds)) (m 0)) (iter) (set! n (add1 n)) (if (> m 16) (print "max " m)) (if (< n 1000) (loop (current-milliseconds) (max (- (current-milliseconds) t)) ))) (print "time:" (- (current-milliseconds) tt))
no title pasted by rivo on Wed Aug 14 22:32:38 2013
C:\hg>csc -O3 -stack-size 256k 1.scm C:\hg>1 max 47. max 47. max 31. max 31. max 32. max 31. max 32. max 32. max 31. max 31. max 31. max 31. max 31. max 31. max 31. C:\hg>csc -O3 -stack-size 512k 1.scm C:\hg>1 [panic] out of memory - heap full while resizing - execution terminated ...more... 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop <--
no title pasted by rivo on Wed Aug 14 22:35:04 2013
(c) 2008-2013, The Chicken Team (c) 2000-2007, Felix L. Winkelmann Version 4.8.0.3 (stability/4.8.0) (rev 091c3d9) windows-mingw32-x86 [ manyargs dload ptables ] compiled 2013-03-12 on aeryn.xorinia.dim (Darwin)
no title added by rivo on Wed Aug 14 23:03:41 2013
C:\hg>csc -O3 -stack-size 197k 1.scm C:\hg>1 max 62. max 31. max 47. max 47. max 31. max 47. max 31. max 47. max 47. max 31. max 47. max 47. max 31. max 47. max 32. max 46. max 47. max 32. max 46. max 47. max 32. max 46. C:\hg>csc -O3 -stack-size 198k 1.scm C:\hg>1 new_tospace_top 10724096 new_tospace_limit 10724088 bytes 8 [panic] out of memory - heap full while resizing - execution terminated ...more... 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop 1.scm:13: loop <--