hotspot/src/share/vm/gc_interface/collectedHeap.hpp
changeset 2006 f2d2f0f20063
parent 1893 c82e388e17c5
child 2141 e9a644aaff87
child 2105 347008ce7984
--- a/hotspot/src/share/vm/gc_interface/collectedHeap.hpp	Fri Jan 30 14:17:52 2009 -0800
+++ b/hotspot/src/share/vm/gc_interface/collectedHeap.hpp	Sat Jan 31 00:15:00 2009 -0800
@@ -42,6 +42,7 @@
 class CollectedHeap : public CHeapObj {
   friend class VMStructs;
   friend class IsGCActiveMark; // Block structured external access to _is_gc_active
+  friend class constantPoolCacheKlass; // allocate() method inserts is_conc_safe
 
 #ifdef ASSERT
   static int       _fire_out_of_memory_count;
@@ -82,8 +83,6 @@
   // Reinitialize tlabs before resuming mutators.
   virtual void resize_all_tlabs();
 
-  debug_only(static void check_for_valid_allocation_state();)
-
  protected:
   // Allocate from the current thread's TLAB, with broken-out slow path.
   inline static HeapWord* allocate_from_tlab(Thread* thread, size_t size);
@@ -142,6 +141,7 @@
     PRODUCT_RETURN;
   virtual void check_for_non_bad_heap_word_value(HeapWord* addr, size_t size)
     PRODUCT_RETURN;
+  debug_only(static void check_for_valid_allocation_state();)
 
  public:
   enum Name {