-
-
Save bnoordhuis/05a5ab4ae10dcdeea8ed to your computer and use it in GitHub Desktop.
This file contains 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/src/node.cc b/src/node.cc | |
index 0907643..44c4078 100644 | |
--- a/src/node.cc | |
+++ b/src/node.cc | |
@@ -181,6 +181,7 @@ static void StopGCTimer () { | |
} | |
static void Idle(uv_idle_t* watcher, int status) { | |
+ abort(); | |
assert((uv_idle_t*) watcher == &gc_idle); | |
if (V8::IdleNotification()) { | |
@@ -1457,7 +1458,7 @@ static void CheckStatus(uv_timer_t* watcher, int status) { | |
if (!uv_is_active((uv_handle_t*) &gc_idle)) { | |
HeapStatistics stats; | |
V8::GetHeapStatistics(&stats); | |
- if (stats.total_heap_size() > 1024 * 1024 * 128) { | |
+ if (1 || stats.total_heap_size() > 1024 * 1024 * 128) { | |
// larger than 128 megs, just start the idle watcher | |
uv_idle_start(&gc_idle, node::Idle); | |
return; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment