Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Version 5.0.71.17 (cherry-pick)
Browse files Browse the repository at this point in the history
Merged 10f6a9e

Use a different GCCallbackFlag for GCs triggered by CollectAllAvailableGarbage

BUG=591463
LOG=N
R=jochen@chromium.org

Review URL: https://codereview.chromium.org/1798883002 .

Cr-Commit-Position: refs/branch-heads/5.0@{#24}
Cr-Branched-From: ad16e6c-refs/heads/5.0.71@{#1}
Cr-Branched-From: bd9df50-refs/heads/master@{#34215}
  • Loading branch information
xharaken committed Mar 14, 2016
1 parent c8a0cf0 commit 0acb021
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -5081,11 +5081,24 @@ enum GCType {
kGCTypeIncrementalMarking | kGCTypeProcessWeakCallbacks
};

/**
* GCCallbackFlags is used to notify additional information about the GC
* callback.
* - kGCCallbackFlagConstructRetainedObjectInfos: The GC callback is for
* constructing retained object infos.
* - kGCCallbackFlagForced: The GC callback is for a forced GC for testing.
* - kGCCallbackFlagSynchronousPhantomCallbackProcessing: The GC callback
* is called synchronously without getting posted to an idle task.
* - 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).
*/
enum GCCallbackFlags {
kNoGCCallbackFlags = 0,
kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1,
kGCCallbackFlagForced = 1 << 2,
kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3
kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3,
kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4,
};

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

0 comments on commit 0acb021

Please sign in to comment.