Revision: 11889
Author: [email protected]
Date: Wed Jun 20 09:07:30 2012
Log: In test-api.cc a few calls to Heap::CollectAllGarbage use
obsolete argument.
The assertion failure I ran into is in Regress1516, where collector falls
back to SCAVENGER, during x64.debug.check run.
Zheng Liu
[email protected]
Review URL: https://chromiumcodereview.appspot.com/10536199
Patch from Zheng Liu <[email protected]>.
http://code.google.com/p/v8/source/detail?r=11889
Modified:
/branches/bleeding_edge/test/cctest/test-api.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc Fri Jun 15 06:34:39 2012
+++ /branches/bleeding_edge/test/cctest/test-api.cc Wed Jun 20 09:07:30 2012
@@ -5242,7 +5242,7 @@
object.MarkIndependent();
HEAP->PerformScavenge();
CHECK(revived);
- HEAP->CollectAllGarbage(true);
+ HEAP->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
{
v8::HandleScope handle_scope;
v8::Local<String> y_str = v8_str("y");
@@ -9394,7 +9394,8 @@
v8::Handle<v8::Value> DirectApiCallback(const v8::Arguments& args) {
static int count = 0;
if (count++ % 3 == 0) {
- HEAP-> CollectAllGarbage(true); // This should move the stub
+ HEAP->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
+ // This should move the stub
GenerateSomeGarbage(); // This should ensure the old stub memory is
flushed
}
return v8::Handle<v8::Value>();
@@ -9449,7 +9450,7 @@
v8::Handle<v8::Value> DirectGetterCallback(Local<String> name,
const v8::AccessorInfo& info) {
if (++p_getter_count % 3 == 0) {
- HEAP->CollectAllGarbage(true);
+ HEAP->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
GenerateSomeGarbage();
}
return v8::Handle<v8::Value>();
@@ -16120,7 +16121,8 @@
CHECK_LE(1, elements);
}
- i::Isolate::Current()->heap()->CollectAllGarbage(true);
+ i::Isolate::Current()->heap()->CollectAllGarbage(
+ i::Heap::kAbortIncrementalMarkingMask);
{ i::Object* raw_map_cache =
i::Isolate::Current()->context()->map_cache();
if (raw_map_cache != i::Isolate::Current()->heap()->undefined_value())
{
i::MapCache* map_cache = i::MapCache::cast(raw_map_cache);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev