collect a little in call-with-new-thread
authorAndy Wingo <wingo@pobox.com>
Tue, 29 Nov 2011 19:26:40 +0000 (20:26 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 29 Nov 2011 19:26:40 +0000 (20:26 +0100)
commit9f7537dcabbded64afd631c0d57c84aced8173c5
tree9525e923f83ab9d31c31f65b6badb0b260db2b61
parent7a4eb5e5ece4ec456a4d0974463393199094708c
collect a little in call-with-new-thread

* libguile/threads.c (scm_call_with_new_thread): Collect a little before
  making a new thread.  Our adjust_gc_frequency hack doesn't work well
  if the main allocation load is thread creation, as in
  https://savannah.gnu.org/bugs/?34140.  This does not appreciably
  affect the speed of the test in that bug, but does effectively limit
  the image size.
libguile/threads.c