@@ -112,17 +112,6 @@ class Space: public CHeapObj<mtGC> {
112
112
return MemRegion (bottom (), saved_mark_word ());
113
113
}
114
114
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
-
126
115
// For detecting GC bugs. Should only be called at GC boundaries, since
127
116
// some unused space may be used as scratch space during GC's.
128
117
// We also call this when expanding a space to satisfy an allocation
@@ -264,9 +253,16 @@ class ContiguousSpace: public Space {
264
253
ContiguousSpace ();
265
254
~ContiguousSpace ();
266
255
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);
268
262
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);
270
266
271
267
// Used temporarily during a compaction phase to hold the value
272
268
// top should have when compaction is complete.
0 commit comments