diff -r 151b990e3764 -r 9c260a6b6471 test/hotspot/jtreg/compiler/unsafe/MixedUnsafeStoreObject.java --- a/test/hotspot/jtreg/compiler/unsafe/MixedUnsafeStoreObject.java Mon Oct 22 14:41:51 2018 -0700 +++ b/test/hotspot/jtreg/compiler/unsafe/MixedUnsafeStoreObject.java Mon Oct 22 17:00:04 2018 -0700 @@ -54,7 +54,7 @@ for (int c = 0; c < 20000; c++) { // trigger OSR compilation // java/lang/Object+12 * // _base = InstPtr, _ptr = BotPTR, _field = NULL, mismatched = true - UNSAFE.putObject(t, F_OFFSET, "foo"); + UNSAFE.putReference(t, F_OFFSET, "foo"); } } @@ -62,7 +62,7 @@ for (int c = 0; c < 20000; c++) { // trigger OSR compilation // ...$T+12 * // _base = InstPtr, _ptr = BotPTR, _field = T.f, mismatched = false - UNSAFE.putObject(t, F_OFFSET, "foo"); + UNSAFE.putReference(t, F_OFFSET, "foo"); } } public static void main(String[] args) {