hotspot/src/share/vm/utilities/globalDefinitions.hpp
changeset 977 b90650e2a9f7
parent 670 ddf3e9583f2f
parent 971 f0b20be4165d
child 1393 614996a6c018
equal deleted inserted replaced
824:ea3d0c81cee9 977:b90650e2a9f7
    95 //   hw += oop(hw)->foo();
    95 //   hw += oop(hw)->foo();
    96 // works, where foo is a method (like size or scavenge) that returns the
    96 // works, where foo is a method (like size or scavenge) that returns the
    97 // object size.
    97 // object size.
    98 class HeapWord {
    98 class HeapWord {
    99   friend class VMStructs;
    99   friend class VMStructs;
   100 private:
   100  private:
   101   char* i;
   101   char* i;
       
   102 #ifdef ASSERT
       
   103  public:
       
   104   char* value() { return i; }
       
   105 #endif
   102 };
   106 };
   103 
   107 
   104 // HeapWordSize must be 2^LogHeapWordSize.
   108 // HeapWordSize must be 2^LogHeapWordSize.
   105 const int HeapWordSize        = sizeof(HeapWord);
   109 const int HeapWordSize        = sizeof(HeapWord);
   106 #ifdef _LP64
   110 #ifdef _LP64