Created
April 27, 2015 15:05
-
-
Save havenwood/d958268d0ab896373af6 to your computer and use it in GitHub Desktop.
Patch to enable Tail Call Optimization in Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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