Skip to content

8354727: CompilationPolicy creates too many compiler threads when code cache space is scarce #25830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/share/code/codeCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void CodeCache::initialize_heaps() {

// Validation
// Check minimal required sizes
check_min_size("non-nmethod code heap", non_nmethod.size, non_nmethod_min_size);
check_min_size("non-nmethod code heap", non_nmethod.size, min_cache_size);
if (profiled.enabled) {
check_min_size("profiled code heap", profiled.size, min_size);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static void main(String[] args) throws Exception {
"-XX:ReservedCodeCacheSize=" + minSize,
"-XX:InitialCodeCacheSize=100K",
"-version");
failsWith(pb, "Not enough space in non-nmethod code heap to run VM");
failsWith(pb, "Invalid code heap sizes");

// Try different combination of Segment Sizes

Expand Down