< prev index next >

src/hotspot/share/gc/cms/promotionInfo.hpp

Print this page

        

@@ -91,23 +91,23 @@
 class SpoolBlock: public FreeChunk {
   friend class PromotionInfo;
  protected:
   SpoolBlock*  nextSpoolBlock;
   size_t       bufferSize;        // number of usable words in this block
-  markWord*    displacedHdr;      // the displaced headers start here
+  markOop*     displacedHdr;      // the displaced headers start here
 
   // Note about bufferSize: it denotes the number of entries available plus 1;
   // legal indices range from 1 through BufferSize - 1.  See the verification
   // code verify() that counts the number of displaced headers spooled.
   size_t computeBufferSize() {
-    return (size() * sizeof(HeapWord) - sizeof(*this)) / sizeof(markWord);
+    return (size() * sizeof(HeapWord) - sizeof(*this)) / sizeof(markOop);
   }
 
  public:
   void init() {
     bufferSize = computeBufferSize();
-    displacedHdr = (markWord*)&displacedHdr;
+    displacedHdr = (markOop*)&displacedHdr;
     nextSpoolBlock = NULL;
   }
 
   void print_on(outputStream* st) const;
   void print() const { print_on(tty); }

@@ -149,12 +149,12 @@
   // The following variant must be used when trackOop is not fully
   // initialized and has a NULL klass:
   void track(PromotedObject* trackOop, Klass* klassOfOop); // keep track of a promoted oop
   void setSpace(CompactibleFreeListSpace* sp) { _space = sp; }
   CompactibleFreeListSpace* space() const     { return _space; }
-  markWord nextDisplacedHeader(); // get next header & forward spool pointer
-  void    saveDisplacedHeader(markWord hdr);
+  markOop nextDisplacedHeader(); // get next header & forward spool pointer
+  void    saveDisplacedHeader(markOop hdr);
                                  // save header and forward spool
 
   inline size_t refillSize() const;
 
   SpoolBlock* getSpoolBlock();   // return a free spooling block
< prev index next >