@@ -112,17 +112,6 @@ class Space: public CHeapObj<mtGC> {
112112 return MemRegion (bottom (), saved_mark_word ());
113113 }
114114
115- // Initialization.
116- // "initialize" should be called once on a space, before it is used for
117- // any purpose. The "mr" arguments gives the bounds of the space, and
118- // the "clear_space" argument should be true unless the memory in "mr" is
119- // known to be zeroed.
120- virtual void initialize (MemRegion mr, bool clear_space, bool mangle_space);
121-
122- // The "clear" method must be called on a region that may have
123- // had allocation performed in it, but is now to be considered empty.
124- virtual void clear (bool mangle_space);
125-
126115 // For detecting GC bugs. Should only be called at GC boundaries, since
127116 // some unused space may be used as scratch space during GC's.
128117 // We also call this when expanding a space to satisfy an allocation
@@ -264,9 +253,16 @@ class ContiguousSpace: public Space {
264253 ContiguousSpace ();
265254 ~ContiguousSpace ();
266255
267- void initialize (MemRegion mr, bool clear_space, bool mangle_space) override ;
256+ // Initialization.
257+ // "initialize" should be called once on a space, before it is used for
258+ // any purpose. The "mr" arguments gives the bounds of the space, and
259+ // the "clear_space" argument should be true unless the memory in "mr" is
260+ // known to be zeroed.
261+ void initialize (MemRegion mr, bool clear_space, bool mangle_space);
268262
269- void clear (bool mangle_space) override ;
263+ // The "clear" method must be called on a region that may have
264+ // had allocation performed in it, but is now to be considered empty.
265+ virtual void clear (bool mangle_space);
270266
271267 // Used temporarily during a compaction phase to hold the value
272268 // top should have when compaction is complete.
0 commit comments