Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created April 27, 2015 15:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havenwood/d958268d0ab896373af6 to your computer and use it in GitHub Desktop.
Save havenwood/d958268d0ab896373af6 to your computer and use it in GitHub Desktop.
Patch to enable Tail Call Optimization in Ruby
diff --git a/vm_opts.h b/vm_opts.h
index b67e254..3e3935a 100644
--- a/vm_opts.h
+++ b/vm_opts.h
@@ -18,8 +18,8 @@
* Following definitions are default values.
*/
-#define OPT_TRACE_INSTRUCTION 1
-#define OPT_TAILCALL_OPTIMIZATION 0
+#define OPT_TRACE_INSTRUCTION 0
+#define OPT_TAILCALL_OPTIMIZATION 1
#define OPT_PEEPHOLE_OPTIMIZATION 1
#define OPT_SPECIALISED_INSTRUCTION 1
#define OPT_INLINE_CONST_CACHE 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment