Bug #1985: st_delete_safe is not safe
http://redmine.ruby-lang.org/issues/show/1985

Author: Yuki Sonoda
Status: Open, Priority: Normal
Category: core, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-08-23 trunk 24631) [i386-darwin9.8.0]

st_delete_safe causes BUS error with the following code
 st_table *tbl = st_init_numtable();
 ID k = 1, v = 1;
 st_insert(tbl, k, v);
 st_delete_safe(tbl, &k, &v, 100);

This is because st_delete_safe does not support packed state of st_table.
Is st_delete_safe an API for extension libraries? i.e. Is this limitation of st_delete_safe intentional?


----------------------------------------
http://redmine.ruby-lang.org