We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e94ad55 commit 55af21fCopy full SHA for 55af21f
src/hotspot/share/code/codeCache.cpp
@@ -1106,6 +1106,9 @@ size_t CodeCache::freelists_length() {
1106
void icache_init();
1107
1108
void CodeCache::initialize() {
1109
+ if (!is_power_of_2(CodeCacheSegmentSize)) {
1110
+ vm_exit_during_initialization(err_msg("CodeCacheSegmentSize should be a power of 2"));
1111
+ }
1112
assert(CodeCacheSegmentSize >= (uintx)CodeEntryAlignment, "CodeCacheSegmentSize must be large enough to align entry points");
1113
#ifdef COMPILER2
1114
assert(CodeCacheSegmentSize >= (uintx)OptoLoopAlignment, "CodeCacheSegmentSize must be large enough to align inner loops");
0 commit comments