Skip to content
Permalink
Browse files
8276036: The value of full_count in the message of insufficient codec…
…ache is wrong

Reviewed-by: kvn, dlong, thartmann, chagedorn
  • Loading branch information
tobiasholenstein authored and chhagedorn committed Nov 3, 2021
1 parent 8731846 commit 61cb4bc6b0252536364a86f38ff2e5c8c7ab610b
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1226,7 +1226,9 @@ void CodeCache::report_codemem_full(int code_blob_type, bool print) {
CodeHeap* heap = get_code_heap(code_blob_type);
assert(heap != NULL, "heap is null");

if ((heap->full_count() == 0) || print) {
heap->report_full();

if ((heap->full_count() == 1) || print) {
// Not yet reported for this heap, report
if (SegmentedCodeCache) {
ResourceMark rm;
@@ -1263,15 +1265,13 @@ void CodeCache::report_codemem_full(int code_blob_type, bool print) {
tty->print("%s", s.as_string());
}

if (heap->full_count() == 0) {
if (heap->full_count() == 1) {
if (PrintCodeHeapAnalytics) {
CompileBroker::print_heapinfo(tty, "all", 4096); // details, may be a lot!
}
}
}

heap->report_full();

EventCodeCacheFull event;
if (event.should_commit()) {
event.set_codeBlobType((u1)code_blob_type);

1 comment on commit 61cb4bc

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 61cb4bc Nov 3, 2021

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.