mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8373087: Parallel: Rename PSGenerationPool to PSOldGenerationPool
Reviewed-by: tschatzl, jsikstro, iwalulya
This commit is contained in:
parent
6700baa505
commit
ed5fc9ad2d
@ -141,9 +141,9 @@ void ParallelScavengeHeap::initialize_serviceability() {
|
||||
"PS Survivor Space",
|
||||
false /* support_usage_threshold */);
|
||||
|
||||
_old_pool = new PSGenerationPool(_old_gen,
|
||||
"PS Old Gen",
|
||||
true /* support_usage_threshold */);
|
||||
_old_pool = new PSOldGenerationPool(_old_gen,
|
||||
"PS Old Gen",
|
||||
true /* support_usage_threshold */);
|
||||
|
||||
_young_manager = new GCMemoryManager("PS Scavenge");
|
||||
_old_manager = new GCMemoryManager("PS MarkSweep");
|
||||
|
||||
@ -24,14 +24,14 @@
|
||||
|
||||
#include "gc/parallel/psMemoryPool.hpp"
|
||||
|
||||
PSGenerationPool::PSGenerationPool(PSOldGen* old_gen,
|
||||
const char* name,
|
||||
bool support_usage_threshold) :
|
||||
PSOldGenerationPool::PSOldGenerationPool(PSOldGen* old_gen,
|
||||
const char* name,
|
||||
bool support_usage_threshold) :
|
||||
CollectedMemoryPool(name, old_gen->capacity_in_bytes(),
|
||||
old_gen->reserved().byte_size(), support_usage_threshold), _old_gen(old_gen) {
|
||||
}
|
||||
|
||||
MemoryUsage PSGenerationPool::get_memory_usage() {
|
||||
MemoryUsage PSOldGenerationPool::get_memory_usage() {
|
||||
size_t maxSize = (available_for_allocation() ? max_size() : 0);
|
||||
size_t used = used_in_bytes();
|
||||
size_t committed = _old_gen->capacity_in_bytes();
|
||||
|
||||
@ -31,12 +31,12 @@
|
||||
#include "services/memoryPool.hpp"
|
||||
#include "services/memoryUsage.hpp"
|
||||
|
||||
class PSGenerationPool : public CollectedMemoryPool {
|
||||
class PSOldGenerationPool : public CollectedMemoryPool {
|
||||
private:
|
||||
PSOldGen* _old_gen;
|
||||
|
||||
public:
|
||||
PSGenerationPool(PSOldGen* pool, const char* name, bool support_usage_threshold);
|
||||
PSOldGenerationPool(PSOldGen* pool, const char* name, bool support_usage_threshold);
|
||||
|
||||
MemoryUsage get_memory_usage();
|
||||
size_t used_in_bytes() { return _old_gen->used_in_bytes(); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user