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

Unified Diff: src/mark-compact.cc

Issue 8017001: Fix for gdbjit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.cc
diff --git a/src/mark-compact.cc b/src/mark-compact.cc
index 2378a5e0a4e0690ab99a5701125bc9d331d846c4..2b26236162188b3a700d44e996f76a82d3b6fe42 100644
--- a/src/mark-compact.cc
+++ b/src/mark-compact.cc
@@ -483,15 +483,16 @@ void MarkCompactCollector::Prepare(GCTracer* tracer) {
ASSERT(!FLAG_always_compact || !FLAG_never_compact);
if (collect_maps_) CreateBackPointers();
+ bool gdbjit = false;
#ifdef ENABLE_GDB_JIT_INTERFACE
if (FLAG_gdbjit) {
// If GDBJIT interface is active disable compaction.
- compacting_collection_ = false;
+ gdbjit = true;
Vyacheslav Egorov (Chromium) 2011/09/23 09:27:55 lets instead do never_compact = true; sweep_prec
}
#endif
// Clear marking bits for precise sweeping to collect all garbage.
- if (was_marked_incrementally_ && PreciseSweepingRequired()) {
+ if ((was_marked_incrementally_ && PreciseSweepingRequired()) || gdbjit) {
heap()->incremental_marking()->Abort();
ClearMarkbits(heap_);
AbortCompaction();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698