8258908: Remove JVM option CleanChunkPoolAsync

Reviewed-by: coleenp
This commit is contained in:
Harold Seigel 2021-01-06 15:11:52 +00:00
parent c0540ffda9
commit f6cb8c558b
6 changed files with 5 additions and 25 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -864,10 +864,6 @@ void DefNewGeneration::gc_epilogue(bool full) {
to()->check_mangled_unused_area_complete();
}
if (!CleanChunkPoolAsync) {
Chunk::clean_chunk_pool();
}
// update the generation and space performance counters
update_counters();
gch->counters()->update_counters();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1267,10 +1267,6 @@ void GenCollectedHeap::gc_epilogue(bool full) {
GenGCEpilogueClosure blk(full);
generation_iterate(&blk, false); // not old-to-young.
if (!CleanChunkPoolAsync) {
Chunk::clean_chunk_pool();
}
MetaspaceCounters::update_performance_counters();
CompressedClassSpaceCounters::update_performance_counters();
};

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -154,11 +154,6 @@ void chunkpool_init() {
ChunkPool::initialize();
}
void
Chunk::clean_chunk_pool() {
ChunkPool::clean();
}
//--------------------------------------------------------------------------------------
// ChunkPoolCleaner implementation

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -85,8 +85,6 @@ class Chunk: CHeapObj<mtChunk> {
// Start the chunk_pool cleaner task
static void start_chunk_pool_cleaner_task();
static void clean_chunk_pool();
};
//------------------------------Arena------------------------------------------

View File

@ -167,9 +167,6 @@ const intx ObjectAlignmentInBytes = 8;
"region.") \
range(1, max_uintx) \
\
develop(bool, CleanChunkPoolAsync, true, \
"Clean the chunk pool asynchronously") \
\
product(uint, HandshakeTimeout, 0, DIAGNOSTIC, \
"If nonzero set a timeout in milliseconds for handshakes") \
\

View File

@ -3676,9 +3676,7 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
create_vm_init_libraries();
}
if (CleanChunkPoolAsync) {
Chunk::start_chunk_pool_cleaner_task();
}
Chunk::start_chunk_pool_cleaner_task();
// Start the service thread
// The service thread enqueues JVMTI deferred events and does various hashtable