weaks: move an allocation outside a critical section
authorAndy Wingo <wingo@pobox.com>
Mon, 13 Feb 2012 14:29:21 +0000 (15:29 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 13 Feb 2012 14:29:21 +0000 (15:29 +0100)
commitaac980de43a0466b968a56607664f5ebbca6b751
treebe05d456c8df725a4d85f69a0e53771228ab1bf6
parent12087939ed06cafa3c6467ff1462d80880f4d86b
weaks: move an allocation outside a critical section

* libguile/weak-set.c (resize_set):
* libguile/weak-table.c (resize_table): Drop the set/table lock while
  allocating the new vector.  Fixes a bug in which a finalizer could
  recursively try to grab the port table lock.
libguile/weak-set.c
libguile/weak-table.c