< prev index next >

src/share/vm/gc/g1/g1AllocRegion.hpp

Print this page

        

@@ -29,13 +29,10 @@
 #include "gc/g1/g1EvacStats.hpp"
 #include "gc/g1/g1InCSetState.hpp"
 
 class G1CollectedHeap;
 
-// 0 -> no tracing, 1 -> basic tracing, 2 -> basic + allocation tracing
-#define G1_ALLOC_REGION_TRACING 0
-
 // A class that holds a region that is active in satisfying allocation
 // requests, potentially issued in parallel. When the active region is
 // full it will be retired and replaced with a new one. The
 // implementation assumes that fast-path allocations will be lock-free
 // and a lock will need to be taken when the active region needs to be

@@ -211,23 +208,23 @@
 
   // Should be called when we want to release the active region which
   // is returned after it's been retired.
   virtual HeapRegion* release();
 
-#if G1_ALLOC_REGION_TRACING
+#ifndef PRODUCT
   void trace(const char* str,
              size_t min_word_size = 0,
              size_t desired_word_size = 0,
              size_t actual_word_size = 0,
              HeapWord* result = NULL);
-#else // G1_ALLOC_REGION_TRACING
+#else // PRODUCT
   void trace(const char* str,
              size_t min_word_size = 0,
              size_t desired_word_size = 0,
              size_t actual_word_size = 0,
              HeapWord* result = NULL) { }
-#endif // G1_ALLOC_REGION_TRACING
+#endif // PRODUCT
 };
 
 class MutatorAllocRegion : public G1AllocRegion {
 protected:
   virtual HeapRegion* allocate_new_region(size_t word_size, bool force);
< prev index next >