diff --git a/src/hotspot/share/runtime/hotCodeGrouper.cpp b/src/hotspot/share/runtime/hotCodeGrouper.cpp index 2eeae41af97..02150ee37e8 100644 --- a/src/hotspot/share/runtime/hotCodeGrouper.cpp +++ b/src/hotspot/share/runtime/hotCodeGrouper.cpp @@ -144,7 +144,7 @@ void HotCodeGrouper::do_grouping(ThreadSampler& sampler) { } if (!hot_heap_has_space(nm->size())) { - log_info(hotcodegrouper)("Not enough space in HotCodeHeap (%ld bytes) to relocate nm (%d bytes). Bailing out", + log_info(hotcodegrouper)("Not enough space in HotCodeHeap (%zd bytes) to relocate nm (%d bytes). Bailing out", hot_code_heap->unallocated_capacity(), nm->size()); return; } @@ -197,7 +197,7 @@ void HotCodeGrouper::do_grouping(ThreadSampler& sampler) { } if (!hot_heap_has_space(actual_dest_nm->size())) { - log_info(hotcodegrouper)("Not enough space in HotCodeHeap (%ld bytes) to relocate nm (%d bytes). Bailing out", + log_info(hotcodegrouper)("Not enough space in HotCodeHeap (%zd bytes) to relocate nm (%d bytes). Bailing out", hot_code_heap->unallocated_capacity(), actual_dest_nm->size()); return; } diff --git a/src/hotspot/share/runtime/hotCodeGrouper.hpp b/src/hotspot/share/runtime/hotCodeGrouper.hpp index 96cc095ed0d..b9d60ca027a 100644 --- a/src/hotspot/share/runtime/hotCodeGrouper.hpp +++ b/src/hotspot/share/runtime/hotCodeGrouper.hpp @@ -26,6 +26,7 @@ #ifndef SHARE_RUNTIME_HOTCODEGROUPER_HPP #define SHARE_RUNTIME_HOTCODEGROUPER_HPP +#include "code/codeCache.hpp" #include "runtime/nonJavaThread.hpp" class ThreadSampler;