From f6cb8c558b03dcd7dfa4261406eac7317ed9ed53 Mon Sep 17 00:00:00 2001 From: Harold Seigel Date: Wed, 6 Jan 2021 15:11:52 +0000 Subject: [PATCH] 8258908: Remove JVM option CleanChunkPoolAsync Reviewed-by: coleenp --- src/hotspot/share/gc/serial/defNewGeneration.cpp | 6 +----- src/hotspot/share/gc/shared/genCollectedHeap.cpp | 6 +----- src/hotspot/share/memory/arena.cpp | 7 +------ src/hotspot/share/memory/arena.hpp | 4 +--- src/hotspot/share/runtime/globals.hpp | 3 --- src/hotspot/share/runtime/thread.cpp | 4 +--- 6 files changed, 5 insertions(+), 25 deletions(-) diff --git a/src/hotspot/share/gc/serial/defNewGeneration.cpp b/src/hotspot/share/gc/serial/defNewGeneration.cpp index 296415542ad..227f00fa916 100644 --- a/src/hotspot/share/gc/serial/defNewGeneration.cpp +++ b/src/hotspot/share/gc/serial/defNewGeneration.cpp @@ -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(); diff --git a/src/hotspot/share/gc/shared/genCollectedHeap.cpp b/src/hotspot/share/gc/shared/genCollectedHeap.cpp index 884a5bf8902..4a7f03203c2 100644 --- a/src/hotspot/share/gc/shared/genCollectedHeap.cpp +++ b/src/hotspot/share/gc/shared/genCollectedHeap.cpp @@ -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(); }; diff --git a/src/hotspot/share/memory/arena.cpp b/src/hotspot/share/memory/arena.cpp index 504a1e5214a..e7939d6f29e 100644 --- a/src/hotspot/share/memory/arena.cpp +++ b/src/hotspot/share/memory/arena.cpp @@ -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 diff --git a/src/hotspot/share/memory/arena.hpp b/src/hotspot/share/memory/arena.hpp index 621ce54e40c..89493b5f863 100644 --- a/src/hotspot/share/memory/arena.hpp +++ b/src/hotspot/share/memory/arena.hpp @@ -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 { // Start the chunk_pool cleaner task static void start_chunk_pool_cleaner_task(); - - static void clean_chunk_pool(); }; //------------------------------Arena------------------------------------------ diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index 096f1943d6f..7a9419ca9d5 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -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") \ \ diff --git a/src/hotspot/share/runtime/thread.cpp b/src/hotspot/share/runtime/thread.cpp index 980cd730afa..b245926d6cf 100644 --- a/src/hotspot/share/runtime/thread.cpp +++ b/src/hotspot/share/runtime/thread.cpp @@ -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