Mercurial > hg > truffle
comparison src/share/vm/memory/space.hpp @ 20304:a22acf6d7598
8048112: G1 Full GC needs to support the case when the very first region is not available
Summary: Refactor preparation for compaction during Full GC so that it lazily initializes the first compaction point. This also avoids problems later when the first region may not be committed. Also reviewed by K. Barrett.
Reviewed-by: brutisso
author | tschatzl |
---|---|
date | Mon, 21 Jul 2014 10:00:31 +0200 |
parents | ff1e37e7eb83 |
children | ee019285a52c |
comparison
equal
deleted
inserted
replaced
20303:c512f38a5139 | 20304:a22acf6d7598 |
---|---|
328 class CompactPoint : public StackObj { | 328 class CompactPoint : public StackObj { |
329 public: | 329 public: |
330 Generation* gen; | 330 Generation* gen; |
331 CompactibleSpace* space; | 331 CompactibleSpace* space; |
332 HeapWord* threshold; | 332 HeapWord* threshold; |
333 CompactPoint(Generation* _gen, CompactibleSpace* _space, | 333 |
334 HeapWord* _threshold) : | 334 CompactPoint(Generation* _gen) : |
335 gen(_gen), space(_space), threshold(_threshold) {} | 335 gen(_gen), space(NULL), threshold(0) {} |
336 }; | 336 }; |
337 | 337 |
338 | 338 |
339 // A space that supports compaction operations. This is usually, but not | 339 // A space that supports compaction operations. This is usually, but not |
340 // necessarily, a space that is normally contiguous. But, for example, a | 340 // necessarily, a space that is normally contiguous. But, for example, a |