Commit ac1f4296 authored by ulan@chromium.org's avatar ulan@chromium.org

Remove test-api/Regress2107 since it doesn't test what Chrome does.

BUG=v8:3625
LOG=N
R=jochen@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24617 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c8a0ea9e
......@@ -18293,40 +18293,6 @@ TEST(IdleNotificationWithLargeHint) {
}
TEST(Regress2107) {
const intptr_t MB = 1024 * 1024;
const int kIdlePauseInMs = 10000;
LocalContext env;
v8::Isolate* isolate = env->GetIsolate();
v8::HandleScope scope(env->GetIsolate());
intptr_t initial_size = CcTest::heap()->SizeOfObjects();
// Send idle notification to start a round of incremental GCs.
env->GetIsolate()->IdleNotification(kIdlePauseInMs);
// Emulate 7 page reloads.
for (int i = 0; i < 7; i++) {
{
v8::HandleScope inner_scope(env->GetIsolate());
v8::Local<v8::Context> ctx = v8::Context::New(isolate);
ctx->Enter();
CreateGarbageInOldSpace();
ctx->Exit();
}
env->GetIsolate()->ContextDisposedNotification();
env->GetIsolate()->IdleNotification(kIdlePauseInMs);
}
// Create garbage and check that idle notification still collects it.
CreateGarbageInOldSpace();
intptr_t size_with_garbage = CcTest::heap()->SizeOfObjects();
CHECK_GT(size_with_garbage, initial_size + MB);
bool finished = false;
for (int i = 0; i < 200 && !finished; i++) {
finished = env->GetIsolate()->IdleNotification(kIdlePauseInMs);
}
intptr_t final_size = CcTest::heap()->SizeOfObjects();
CHECK_LT(final_size, initial_size + 1);
}
TEST(Regress2333) {
LocalContext env;
for (int i = 0; i < 3; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment