Revision: 19054
Author: [email protected]
Date: Tue Feb 4 10:30:36 2014 UTC
Log: Remove unused AllocationSpace paramenter from CollectGarbage.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/148943004
http://code.google.com/p/v8/source/detail?r=19054
Modified:
/branches/bleeding_edge/src/heap-inl.h
/branches/bleeding_edge/src/heap.cc
/branches/bleeding_edge/src/heap.h
=======================================
--- /branches/bleeding_edge/src/heap-inl.h Mon Feb 3 12:20:15 2014 UTC
+++ /branches/bleeding_edge/src/heap-inl.h Tue Feb 4 10:30:36 2014 UTC
@@ -555,8 +555,7 @@
const v8::GCCallbackFlags callbackFlags) {
const char* collector_reason = NULL;
GarbageCollector collector = SelectGarbageCollector(space,
&collector_reason);
- return CollectGarbage(
- space, collector, gc_reason, collector_reason, callbackFlags);
+ return CollectGarbage(collector, gc_reason, collector_reason,
callbackFlags);
}
=======================================
--- /branches/bleeding_edge/src/heap.cc Mon Feb 3 12:20:15 2014 UTC
+++ /branches/bleeding_edge/src/heap.cc Tue Feb 4 10:30:36 2014 UTC
@@ -739,7 +739,7 @@
const int kMaxNumberOfAttempts = 7;
const int kMinNumberOfAttempts = 2;
for (int attempt = 0; attempt < kMaxNumberOfAttempts; attempt++) {
- if (!CollectGarbage(OLD_POINTER_SPACE, MARK_COMPACTOR, gc_reason,
NULL) &&
+ if (!CollectGarbage(MARK_COMPACTOR, gc_reason, NULL) &&
attempt + 1 >= kMinNumberOfAttempts) {
break;
}
@@ -751,8 +751,7 @@
}
-bool Heap::CollectGarbage(AllocationSpace space,
- GarbageCollector collector,
+bool Heap::CollectGarbage(GarbageCollector collector,
const char* gc_reason,
const char* collector_reason,
const v8::GCCallbackFlags gc_callback_flags) {
=======================================
--- /branches/bleeding_edge/src/heap.h Fri Jan 31 16:52:17 2014 UTC
+++ /branches/bleeding_edge/src/heap.h Tue Feb 4 10:30:36 2014 UTC
@@ -2123,7 +2123,6 @@
// Returns whether there is a chance that another major GC could
// collect more garbage.
bool CollectGarbage(
- AllocationSpace space,
GarbageCollector collector,
const char* gc_reason,
const char* collector_reason,
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.