Skip to content

Commit 13a961e

Browse files
hannespayerjasnell
authored andcommitted
v8: backport 4f82f1d948c from upstream v8
Original commit message: [Api] Add an idle time garbage collection callback flag to GCCallbackFlags. BUG=chromium:718484 Review-Url: https://codereview.chromium.org/2867073002 Cr-Commit-Position: refs/heads/master@{#45167} PR-URL: #13217 Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 188630b commit 13a961e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/v8/include/v8.h

+3
Original file line numberDiff line numberDiff line change
@@ -6015,6 +6015,8 @@ enum GCType {
60156015
* - kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called
60166016
* in a phase where V8 is trying to collect all available garbage
60176017
* (e.g., handling a low memory notification).
6018+
* - kGCCallbackScheduleIdleCollectGarbage: The GC callback is called to
6019+
* trigger an idle garbage collection.
60186020
*/
60196021
enum GCCallbackFlags {
60206022
kNoGCCallbackFlags = 0,
@@ -6023,6 +6025,7 @@ enum GCCallbackFlags {
60236025
kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3,
60246026
kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4,
60256027
kGCCallbackFlagCollectAllExternalMemory = 1 << 5,
6028+
kGCCallbackScheduleIdleCollectGarbage = 1 << 6,
60266029
};
60276030

60286031
typedef void (*GCCallback)(GCType type, GCCallbackFlags flags);

0 commit comments

Comments
 (0)