Skip to content

Commit d234b6d

Browse files
committed
8230019: [REDO] compiler/types/correctness/* tests fail with "assert(recv == __null || recv->is_klass()) failed: wrong type"
Explicitly set the receiver klass in the ci MDO to NULL if it is NULL in the MDO while translating. Reviewed-by: mdoerr Backport-of: 6df2815
1 parent d7ac85a commit d234b6d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/hotspot/share/ci/ciMethodData.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ void ciReceiverTypeData::translate_receiver_data_from(const ProfileData* data) {
174174
if (k != NULL) {
175175
ciKlass* klass = CURRENT_ENV->get_klass(k);
176176
set_receiver(row, klass);
177+
} else {
178+
set_receiver(row, NULL);
177179
}
178180
}
179181
}

test/hotspot/jtreg/ProblemList.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ compiler/jvmci/compilerToVM/GetFlagValueTest.java 8204459 generic-all
4848
compiler/jvmci/compilerToVM/GetResolvedJavaTypeTest.java 8158860 generic-all
4949
compiler/jvmci/compilerToVM/InvalidateInstalledCodeTest.java 8163894 generic-all
5050
compiler/tiered/LevelTransitionTest.java 8067651 generic-all
51-
compiler/types/correctness/CorrectnessTest.java 8066173 generic-all
52-
compiler/types/correctness/OffTest.java 8066173 generic-all
51+
compiler/types/correctness/CorrectnessTest.java 8225620 solaris-sparcv9
52+
compiler/types/correctness/OffTest.java 8225620 solaris-sparcv9
5353

5454
compiler/c2/Test6852078.java 8194310 generic-all
5555

0 commit comments

Comments
 (0)