ruby/ruby — pull request #216 by funny-falcon (2012-11-18 10:03:31+00:00)
Title: rb_ary_dup_of_p - stricter change for array's copy

* array.c (rb_ary_dup_of_p): new function
stricter check for equality of previously dup-ed array,
because rb_ary_shared_with_p doesn't handle case when #shift or #pop
were applied to original array

* include/ruby/intern.h (rb_ary_dup_of_p): declare

* load.c (rb_get_expanded_load_path, get_loaded_features_index):
use rb_ary_dup_of_p instead of rb_ary_shared_with_p