Skip to content

Commit

Permalink
Update src/hotspot/share/code/codeCache.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Hartmann <[email protected]>
  • Loading branch information
bulasevich and TobiHartmann authored Apr 3, 2024
1 parent 7ddf512 commit 03d0061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/code/codeCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct CodeHeapInfo {

static void set_size_of_unset_code_heap(CodeHeapInfo* heap, size_t available_size, size_t used_size, size_t min_size) {
assert(!heap->set, "sanity");
heap->size = (available_size > used_size + min_size) ? (available_size - used_size) : min_size;
heap->size = (available_size > (used_size + min_size)) ? (available_size - used_size) : min_size;
}

void CodeCache::initialize_heaps() {
Expand Down

0 comments on commit 03d0061

Please sign in to comment.