Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created April 17, 2012 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/05a5ab4ae10dcdeea8ed to your computer and use it in GitHub Desktop.
Save bnoordhuis/05a5ab4ae10dcdeea8ed to your computer and use it in GitHub Desktop.
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