mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8200729: Conditional compilation of GCs
Reviewed-by: ehelin, coleenp, kvn, ihse
This commit is contained in:
parent
d1cf230fc1
commit
1cb95bd3d1
123 changed files with 661 additions and 447 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "classfile/vmSymbols.hpp"
|
||||
#include "code/codeCache.hpp"
|
||||
#include "code/icBuffer.hpp"
|
||||
#include "gc/serial/defNewGeneration.hpp"
|
||||
#include "gc/shared/adaptiveSizePolicy.hpp"
|
||||
#include "gc/shared/cardTableBarrierSet.hpp"
|
||||
#include "gc/shared/cardTableRS.hpp"
|
||||
|
@ -1250,12 +1251,14 @@ GenCollectedHeap* GenCollectedHeap::heap() {
|
|||
return (GenCollectedHeap*) heap;
|
||||
}
|
||||
|
||||
#if INCLUDE_SERIALGC
|
||||
void GenCollectedHeap::prepare_for_compaction() {
|
||||
// Start by compacting into same gen.
|
||||
CompactPoint cp(_old_gen);
|
||||
_old_gen->prepare_for_compaction(&cp);
|
||||
_young_gen->prepare_for_compaction(&cp);
|
||||
}
|
||||
#endif // INCLUDE_SERIALGC
|
||||
|
||||
void GenCollectedHeap::verify(VerifyOption option /* ignored */) {
|
||||
log_debug(gc, verify)("%s", _old_gen->name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue