Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index 4f4c68db844fe2be2cf2569b84de4d215ece0a71..d0fc445b262757d943ce7a78caf5206d59d2be6d 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -2578,14 +2578,14 @@ void PagedSpace::EvictEvacuationCandidatesFromFreeLists() { |
} |
-HeapObject* PagedSpace::EnsureSweepingProgress(intptr_t size_in_bytes) { |
+HeapObject* PagedSpace::EnsureSweepingProgress(int size_in_bytes) { |
MarkCompactCollector* collector = heap()->mark_compact_collector(); |
if (collector->IsConcurrentSweepingInProgress(this)) { |
// If sweeping is still in progress try to sweep pages on the main thread. |
intptr_t free_chunk = |
collector->SweepInParallel(this, size_in_bytes); |
- if (free_chunk >= size_in_bytes) { |
+ if (free_chunk >= static_cast<intptr_t>(size_in_bytes)) { |
Dmitry Lomov (no reviews)
2014/07/10 14:38:44
Can you add a CHECK for negative size_in_bytes?
Hannes Payer (out of office)
2014/07/10 14:49:53
Done.
|
HeapObject* object = free_list_.Allocate(size_in_bytes); |
// We should be able to allocate an object here since we just freed that |
// much memory. |