 Chromium Code Reviews
 Chromium Code Reviews Issue 
            11232065:
    Expose gc(true) to JavaScript, which triggers a scavenger GC.  (Closed)
    
  
    Issue 
            11232065:
    Expose gc(true) to JavaScript, which triggers a scavenger GC.  (Closed) 
  | DescriptionExpose 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 #Messages
    Total messages: 3 (0 generated)
     |