Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

James Golick method cache patches #4

Merged
merged 74 commits into from
Jul 13, 2013

Conversation

haileys
Copy link
Contributor

@haileys haileys commented Jul 13, 2013

This pull request merges in the @jamesgolick hierarchical method cache patches.

I've fixed a bug in rb_const_set and rb_const_remove where these functions failed to invalidate the global state version (which is what constant lookups are cached against)

This isn't a comprehensive fix, but it'll do in the interim.
This is the beginning of a basic gc profiler that has less overhead and
memory footprint than GC::Profiler. More to come.
because otherwise the ruby_core_source gem doesn't work
Everything is now under RubyVM::MethodCache:

  - RubyVM::MethodCache.invalidations
  - RubyVM::MethodCache.hits
  - RubyVM::MethodCache.misses
  - RubyVM::MethodCache.miss_time (milliseconds)
Set RubyVM::MethodCache.invalidation_log to something that responds to
…class hierarchy to expire the method cache from Object
jamesgolick and others added 26 commits April 9, 2013 18:39
Conflicts:

	common.mk
…k-method-cache-patches

Conflicts:
	gc.c
	version.h
haileys pushed a commit that referenced this pull request Jul 13, 2013
@haileys haileys merged commit d151f4e into github-p231 Jul 13, 2013
@haileys haileys deleted the jamesgolick-method-cache-patches branch July 13, 2013 08:31
@tmm1
Copy link
Contributor

tmm1 commented Jul 13, 2013

💥

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants