Fix statprof for optimizations
authorAndy Wingo <wingo@pobox.com>
Wed, 16 Apr 2014 17:12:43 +0000 (19:12 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 16 Apr 2014 17:12:43 +0000 (19:12 +0200)
commit3f71590f20ae205e9c6c786d5f6a047aac6bdeab
tree40fc97adce5ef804b700afddca6c6ab75fb8e1e2
parent6eae3141bf70a21b762d2be4700ebc8ea542c7d1
Fix statprof for optimizations

* module/statprof.scm (profile-signal-handler): Bind in a letrec.
  Otherwise the compiler may see the closure slot as dead, and the inner
  stack cut won't work.
module/statprof.scm