1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
shirosaki b56a2afc14 Index $LOADED_FEATURES so that require isn't so slow
* load.c (rb_feature_p, rb_provide_feature): index $LOADED_FEATURES
  so that require isn't so slow.

* load.c (rb_provide_feature, get_loaded_features_index): ensure
  that $LOADED_FEATURES entries are frozen strings.  The user
  must mutate $LOADED_FEATURES itself rather than its individual
  entries.

* load.c (reset_loaded_features_snapshot): add a new function to reset
  vm->loaded_features_snapshot.

* load.c (get_loaded_features_index_raw): add a new function to get
  the loaded-features index.

* load.c (features_index_add_single): add a new function to add to the
  loaded-features index a single feature.

* load.c (features_index_add): add a new function to add to the
  loaded-features index all the required entries for `feature`.

* vm_core.h (rb_vm_struct): add fields.

* vm.c (rb_vm_mark): mark new fields.

* include/ruby/intern.h (rb_hash_clear): declare function.

* hash.c (rb_hash_clear): make function non-static.
  Patch by Greg Price.
  [ruby-core:47970] [Bug #7158]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-05 15:27:01 +00:00
..
backward [Bug #6607] 2012-06-19 09:43:53 +00:00
defines.h * fix ANSI C compliance of r33757 2011-11-15 05:05:35 +00:00
encoding.h * parse.y (rb_check_id_cstr): new function to check if ID is 2012-04-11 13:31:23 +00:00
intern.h Index $LOADED_FEATURES so that require isn't so slow 2012-11-05 15:27:01 +00:00
io.h process.c: try conversion at redirection 2012-07-27 09:25:54 +00:00
missing.h * include/ruby/missing.h: include math.h before checking INFINITY 2012-06-19 21:24:31 +00:00
oniguruma.h * Merge Onigmo-5.13.1. [ruby-dev:45057] [Feature #5820] 2012-02-17 07:42:23 +00:00
re.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
regex.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
ruby.h * string.c (sym_to_proc, sym_call): A Proc created by Symbol#to_proc 2012-11-02 05:48:29 +00:00
st.h * st.c (st_update): pass pointer to key to the callback function. 2012-03-29 14:50:20 +00:00
subst.h * include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert 2011-12-05 05:29:31 +00:00
thread.h * thread.c (rb_thread_call_without_gvl2): added. 2012-07-18 06:47:43 +00:00
util.h * util.c, include/ruby/util.h (ruby_add_suffix): remove the function. 2011-08-03 07:10:56 +00:00
version.h * include/ruby/version.h: RUBY_API_VERSION 2.0.0 2012-01-06 14:13:27 +00:00
vm.h * vm.c (ruby_vm_at_exit): new API. This enables extension libs to 2010-12-02 11:06:32 +00:00
win32.h win32.h: fstat on mingw32 2012-10-27 01:05:06 +00:00