-Fixed non debug build with an ifdef.
authorbak@chromium.org <bak@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 20 Oct 2008 07:37:51 +0000 (07:37 +0000)
committerbak@chromium.org <bak@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 20 Oct 2008 07:37:51 +0000 (07:37 +0000)
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@526 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/heap.cc
src/heap.h

index 50befdcb60deb443e86e55fa5608f23f2b7f2059..384b9d6a1f3d8011f59b30633d862f7e0e73611e 100644 (file)
@@ -3106,12 +3106,13 @@ const char* GCTracer::CollectorString() {
 }
 
 
+#ifdef DEBUG
 bool Heap::GarbageCollectionGreedyCheck() {
   ASSERT(FLAG_gc_greedy);
   if (Bootstrapper::IsActive()) return true;
   if (disallow_allocation_failure()) return true;
   return CollectGarbage(0, NEW_SPACE);
 }
-
+#endif
 
 } }  // namespace v8::internal
index 1f0fc7d89f018569245ae9e3be5e3c840a76c774..3d241a6891a53b45c481507550529a5407402300 100644 (file)
@@ -565,8 +565,10 @@ class Heap : public AllStatic {
   // ensure correct callback for weak global handles.
   static void PerformScavenge();
 
+#ifdef DEBUG
   // Utility used with flag gc-greedy.
   static bool GarbageCollectionGreedyCheck();
+#endif
 
   static void SetGlobalGCPrologueCallback(GCCallback callback) {
     global_gc_prologue_callback_ = callback;