mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-07 22:50:49 +00:00
fixing test failures due to intx -> int of BciProfileWidth
This commit is contained in:
parent
a32b6eadaf
commit
c3a85cd4d1
@ -1985,7 +1985,7 @@ bool FileMapHeader::validate() {
|
||||
if (_bci_profile_width != BciProfileWidth) {
|
||||
MetaspaceShared::report_loading_error("The %s's BciProfileWidth setting (%d)"
|
||||
" does not equal the current BciProfileWidth setting (%d).", file_type,
|
||||
(int)_bci_profile_width, (int)BciProfileWidth);
|
||||
_bci_profile_width, BciProfileWidth);
|
||||
return false;
|
||||
}
|
||||
if (_type_profile_casts != TypeProfileCasts) {
|
||||
|
||||
@ -152,7 +152,7 @@ private:
|
||||
int _type_profile_args_limit;
|
||||
int _type_profile_parms_limit;
|
||||
intx _type_profile_width;
|
||||
intx _bci_profile_width;
|
||||
int _bci_profile_width;
|
||||
bool _profile_traps;
|
||||
bool _type_profile_casts;
|
||||
int _spec_trap_limit_extra_entries;
|
||||
|
||||
@ -350,7 +350,7 @@ JVMCIObjectArray CompilerToVM::initialize_intrinsics(JVMCI_TRAPS) {
|
||||
do_int_flag(AllocatePrefetchLines) \
|
||||
do_int_flag(AllocatePrefetchStepSize) \
|
||||
do_int_flag(AllocatePrefetchStyle) \
|
||||
do_intx_flag(BciProfileWidth) \
|
||||
do_int_flag(BciProfileWidth) \
|
||||
do_bool_flag(BootstrapJVMCI) \
|
||||
do_bool_flag(CITime) \
|
||||
do_bool_flag(CITimeEach) \
|
||||
|
||||
@ -143,7 +143,7 @@ public class MethodData extends Metadata implements MethodDataInterface<Klass,Me
|
||||
if (flag.getName().equals("TypeProfileWidth")) {
|
||||
TypeProfileWidth = (int)flag.getIntx();
|
||||
} else if (flag.getName().equals("BciProfileWidth")) {
|
||||
BciProfileWidth = (int)flag.getIntx();
|
||||
BciProfileWidth = (int)flag.getInt();
|
||||
} else if (flag.getName().equals("CompileThreshold")) {
|
||||
CompileThreshold = (int)flag.getIntx();
|
||||
}
|
||||
|
||||
@ -36,7 +36,6 @@
|
||||
import jdk.test.lib.Platform;
|
||||
public class IntxTest {
|
||||
private static final String FLAG_NAME = "OnStackReplacePercentage";
|
||||
private static final String FLAG_DEBUG_NAME = "BciProfileWidth";
|
||||
private static final long COMPILE_THRESHOLD = VmFlagTest.WHITE_BOX.getIntxVMFlag("CompileThreshold");
|
||||
private static final Long[] TESTS = {0L, 100L, (long)(Integer.MAX_VALUE>>3)*100L};
|
||||
|
||||
@ -45,7 +44,6 @@ public class IntxTest {
|
||||
VmFlagTest.runTest(FLAG_NAME, TESTS,
|
||||
VmFlagTest.WHITE_BOX::setIntxVMFlag,
|
||||
VmFlagTest.WHITE_BOX::getIntxVMFlag);
|
||||
VmFlagTest.runTest(FLAG_DEBUG_NAME, VmFlagTest.WHITE_BOX::getIntxVMFlag);
|
||||
}
|
||||
|
||||
static void find_and_set_max_osrp() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user