8202591: Remove usage of CMSEdenChunksRecordAlways in defNewGeneration.cpp
Reviewed-by: eosterlund, kbarrett
This commit is contained in:
parent
983911c697
commit
7d380f1708
@ -1006,11 +1006,9 @@ HeapWord* DefNewGeneration::allocate(size_t word_size, bool is_tlab) {
|
|||||||
// have to use it here, as well.
|
// have to use it here, as well.
|
||||||
HeapWord* result = eden()->par_allocate(word_size);
|
HeapWord* result = eden()->par_allocate(word_size);
|
||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
#if INCLUDE_CMSGC
|
if (_old_gen != NULL) {
|
||||||
if (CMSEdenChunksRecordAlways && _old_gen != NULL) {
|
|
||||||
_old_gen->sample_eden_chunk();
|
_old_gen->sample_eden_chunk();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
// If the eden is full and the last collection bailed out, we are running
|
// If the eden is full and the last collection bailed out, we are running
|
||||||
// out of heap space, and we try to allocate the from-space, too.
|
// out of heap space, and we try to allocate the from-space, too.
|
||||||
@ -1024,11 +1022,9 @@ HeapWord* DefNewGeneration::allocate(size_t word_size, bool is_tlab) {
|
|||||||
HeapWord* DefNewGeneration::par_allocate(size_t word_size,
|
HeapWord* DefNewGeneration::par_allocate(size_t word_size,
|
||||||
bool is_tlab) {
|
bool is_tlab) {
|
||||||
HeapWord* res = eden()->par_allocate(word_size);
|
HeapWord* res = eden()->par_allocate(word_size);
|
||||||
#if INCLUDE_CMSGC
|
if (_old_gen != NULL) {
|
||||||
if (CMSEdenChunksRecordAlways && _old_gen != NULL) {
|
|
||||||
_old_gen->sample_eden_chunk();
|
_old_gen->sample_eden_chunk();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user