Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Issue 11232065: Expose gc(true) to JavaScript, which triggers a scavenger GC. (Closed)

Created:
8 years, 2 months ago by haraken
Modified:
8 years, 1 month ago
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Expose gc(true) to JavaScript, which triggers a scavenger GC. With the --expose_gc option, gc() is exposed to JavaScript. Currently gc() triggers a full GC. To enable JavaScript to test the behavior of a scavenger GC, this patch exposes gc(true). If the first argument is true, gc(...) triggers a scavenger GC. Otherwise, gc(...) triggers a full GC. BUG= Test=Manually confirmed that gc() and gc(false) trigger a full GC and that gc(true) triggers a scavenger GC. Committed: https://code.google.com/p/v8/source/detail?r=12815

Patch Set 1 #

Patch Set 2 : Fix styles #

Total comments: 8

Patch Set 3 : Reviewer comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M src/extensions/gc-extension.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Michael Starzinger
On a higher level note: I am not sure if we should use gc(true) to ...
8 years, 1 month ago (2012-10-25 11:47:29 UTC) #1
haraken
> On a higher level note: I am not sure if we should use gc(true) ...
8 years, 1 month ago (2012-10-25 11:54:49 UTC) #2
Michael Starzinger
8 years, 1 month ago (2012-10-25 12:18:24 UTC) #3
LGTM. Will land that for you.

Powered by Google App Engine
This is Rietveld 408576698