thread_count = thread_count_;
}
context.ForAll(0, dex_file.NumClassDefs(), InitializeClass, thread_count);
- if (IsImage()) {
- // Prune garbage objects created during aborted transactions.
- Runtime::Current()->GetHeap()->CollectGarbage(true);
- }
}
void CompilerDriver::InitializeClasses(jobject class_loader,
CHECK(dex_file != NULL);
InitializeClasses(class_loader, *dex_file, dex_files, thread_pool, timings);
}
+ if (IsImage()) {
+ // Prune garbage objects created during aborted transactions.
+ Runtime::Current()->GetHeap()->CollectGarbage(true);
+ }
}
void CompilerDriver::Compile(jobject class_loader, const std::vector<const DexFile*>& dex_files,