-
-
Save joakimk/1185872 to your computer and use it in GitHub Desktop.
Patch Ruby 1.9.3.preview1 GC Tuning Noise
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/gc.c b/gc.c | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -416,7 +416,6 @@ | |
malloc_limit_ptr = getenv("RUBY_GC_MALLOC_LIMIT"); | |
if (malloc_limit_ptr != NULL) { | |
int malloc_limit_i = atoi(malloc_limit_ptr); | |
- printf("malloc_limit=%d (%d)\n", malloc_limit_i, initial_malloc_limit); | |
if (malloc_limit_i > 0) { | |
initial_malloc_limit = malloc_limit_i; | |
} | |
@@ -425,7 +424,6 @@ | |
heap_min_slots_ptr = getenv("RUBY_HEAP_MIN_SLOTS"); | |
if (heap_min_slots_ptr != NULL) { | |
int heap_min_slots_i = atoi(heap_min_slots_ptr); | |
- printf("heap_min_slots=%d (%d)\n", heap_min_slots_i, initial_heap_min_slots); | |
if (heap_min_slots_i > 0) { | |
initial_heap_min_slots = heap_min_slots_i; | |
initial_expand_heap(&rb_objspace); | |
@@ -435,7 +433,6 @@ | |
free_min_ptr = getenv("RUBY_FREE_MIN"); | |
if (free_min_ptr != NULL) { | |
int free_min_i = atoi(free_min_ptr); | |
- printf("free_min=%d (%d)\n", free_min_i, initial_free_min); | |
if (free_min_i > 0) { | |
initial_free_min = free_min_i; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment