From 9c7af15a8c5e1cd817e5bc062ac7ece72a60aabc Mon Sep 17 00:00:00 2001 From: hpayer Date: Mon, 8 May 2017 13:36:17 -0700 Subject: [PATCH] v8: backport 4f82f1d948c from upstream v8 Original commit message: [PATCH] Rename idle garbage collection callback flag. TBR=mlippautz@chromium.org Review-Url: https://codereview.chromium.org/2867863002 Cr-Commit-Position: refs/heads/master@{#45173} PR-URL: https://github.com/nodejs/node/pull/13217 Reviewed-By: Franziska Hinkelmann Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- deps/v8/include/v8.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 8637e060b51ae9..7988b58361e419 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -6180,7 +6180,7 @@ enum GCType { * - kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called * in a phase where V8 is trying to collect all available garbage * (e.g., handling a low memory notification). - * - kGCCallbackScheduleIdleCollectGarbage: The GC callback is called to + * - kGCCallbackScheduleIdleGarbageCollection: The GC callback is called to * trigger an idle garbage collection. */ enum GCCallbackFlags { @@ -6190,7 +6190,7 @@ enum GCCallbackFlags { kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3, kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4, kGCCallbackFlagCollectAllExternalMemory = 1 << 5, - kGCCallbackScheduleIdleCollectGarbage = 1 << 6, + kGCCallbackScheduleIdleGarbageCollection = 1 << 6, }; typedef void (*GCCallback)(GCType type, GCCallbackFlags flags);