Skip to content

Commit

Permalink
8327238: Remove MetadataAllocationFailALot* develop flags
Browse files Browse the repository at this point in the history
Reviewed-by: gli, ayang
  • Loading branch information
Thomas Schatzl committed Mar 7, 2024
1 parent d7273ac commit 784f11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 3 additions & 5 deletions src/hotspot/share/gc/shared/gcVMOperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,9 @@ void VM_CollectForMetadataAllocation::doit() {
// Check again if the space is available. Another thread
// may have similarly failed a metadata allocation and induced
// a GC that freed space for the allocation.
if (!MetadataAllocationFailALot) {
_result = _loader_data->metaspace_non_null()->allocate(_size, _mdtype);
if (_result != nullptr) {
return;
}
_result = _loader_data->metaspace_non_null()->allocate(_size, _mdtype);
if (_result != nullptr) {
return;
}

#if INCLUDE_G1GC
Expand Down
7 changes: 0 additions & 7 deletions src/hotspot/share/gc/shared/gc_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,6 @@
"Number of object array elements to push onto the marking stack " \
"before pushing a continuation entry") \
\
develop(bool, MetadataAllocationFailALot, false, \
"Fail metadata allocations at intervals controlled by " \
"MetadataAllocationFailALotInterval") \
\
develop(uintx, MetadataAllocationFailALotInterval, 1000, \
"Metadata allocation failure a lot interval") \
\
product_pd(bool, NeverActAsServerClassMachine, \
"Never act like a server-class machine") \
\
Expand Down

1 comment on commit 784f11c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.