Permalink
Browse files

more exports needed for ruby-prof

  • Loading branch information...
1 parent e4abbcd commit 2969a4cc1e6260af8f1fd2e4d96d5662908e957b @skaes skaes committed Sep 18, 2012
@@ -0,0 +1,84 @@
+diff --git a/gc.c b/gc.c
+index 18ffbde..cc14159 100644
+--- a/gc.c
++++ b/gc.c
+@@ -1035,6 +1035,7 @@ ruby_xfree(void *x)
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_enable(void)
+ {
+@@ -1057,6 +1058,7 @@ rb_gc_enable(void)
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_disable(void)
+ {
+@@ -1079,6 +1081,7 @@ rb_gc_disable(void)
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_enable_stats()
+ {
+@@ -1100,6 +1103,7 @@ rb_gc_enable_stats()
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_disable_stats()
+ {
+@@ -1119,6 +1123,7 @@ rb_gc_disable_stats()
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_stats_enabled()
+ {
+@@ -1138,6 +1143,7 @@ rb_gc_stats_enabled()
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_clear_stats()
+ {
+@@ -1208,6 +1214,7 @@ rb_gc_num_allocations()
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_enable_trace()
+ {
+@@ -1229,6 +1236,7 @@ rb_gc_enable_trace()
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_disable_trace()
+ {
+@@ -1248,6 +1256,7 @@ rb_gc_disable_trace()
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_trace_enabled()
+ {
+@@ -1276,6 +1285,7 @@ const char* GC_LOGFILE_IVAR = "@gc_logfile_name";
+ *
+ */
+
++RUBY_FUNC_EXPORTED
+ VALUE
+ rb_gc_log_file(int argc, VALUE *argv, VALUE self)
+ {
@@ -5,3 +5,4 @@ railsexpress/04-display-more-detailed-stack-trace.patch
railsexpress/05-fork-support-for-gc-logging.patch
railsexpress/06-track-live-dataset-size.patch
railsexpress/07-webrick_204_304_keep_alive_fix.patch
+railsexpress/08-export-a-few-more-symbols-for-ruby-prof.patch

0 comments on commit 2969a4c

Please sign in to comment.