Skip to content

Commit 3ddd099

Browse files
authored
Merge pull request #22190 from luke-li-2003/CodeCachePageOptFix
Parse Large Code Cache Page Sizes Options Correctly
2 parents 0e97c96 + f183f39 commit 3ddd099

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

runtime/compiler/control/J9Options.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,9 +2133,15 @@ bool J9::Options::preProcessCodeCacheXlpCodeCache(J9JavaVM *vm, J9JITConfig *jit
21332133
}
21342134
}
21352135

2136-
if (largePageSize > (0) && isNonNegativePowerOf2((int32_t)largePageSize))
2136+
if (largePageSize > (0)
2137+
#if defined(J9VM_ENV_DATA64)
2138+
&& isNonNegativePowerOf2((int64_t) largePageSize)
2139+
#else
2140+
&& isNonNegativePowerOf2((int32_t) largePageSize)
2141+
#endif
2142+
)
21372143
{
2138-
jitConfig->largeCodePageSize = (int32_t)largePageSize;
2144+
jitConfig->largeCodePageSize = largePageSize;
21392145
jitConfig->largeCodePageFlags = (int32_t)largePageFlags;
21402146
}
21412147
}

test/functional/VM_Test/playlist.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,6 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-ex
224224
</test>
225225
<test>
226226
<testCaseName>xlpCodeCacheTests</testCaseName>
227-
<disables>
228-
<disable>
229-
<comment>https://github.com/eclipse-openj9/openj9/issues/22143#issuecomment-3045722163</comment>
230-
<platform>.*aix.*</platform>
231-
</disable>
232-
</disables>
233227
<variations>
234228
<variation>Mode109</variation>
235229
<variation>Mode110</variation>

0 commit comments

Comments
 (0)