Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis bnoordhuis/patsje.patch Secret
Created Apr 17, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.