disallow get-handle / create-handle! of weak hash tables
authorAndy Wingo <wingo@pobox.com>
Sun, 1 May 2011 18:34:47 +0000 (20:34 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 1 May 2011 21:01:14 +0000 (23:01 +0200)
commit1d9c2e6271105ee0f728127d9b544432b7cc0f4f
treea194ce6e65588549d61bf493f29ae4b6bb09a6f3
parent8bee35bc536eebd3d223c23990a65b1341e760ac
disallow get-handle / create-handle! of weak hash tables

* libguile/hashtab.c (scm_hashq_get_handle, scm_hashq_create_handle_x)
  (scm_hashv_get_handle, scm_hashv_create_handle_x)
  (scm_hash_get_handle, scm_hash_create_handle_x)
  (scm_hashx_get_handle, scm_hashx_create_handle_x): Don't allow these
  functions to be called on weak hash tables, as we have no idea when
  the GC will null out fields of the handle, and set-cdr! won't register
  disappearing links, and set-car! would never work of course.
libguile/hashtab.c