From 02347d0cec77212d38aad8d06b6ac0c316be00d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20=C3=96sterlund?= Date: Mon, 17 Apr 2023 12:14:57 +0000 Subject: [PATCH] 8305351: C2 setScopedValueCache intrinsic doesn't use access API Reviewed-by: kvn, rcastanedalo, aph, mdoerr --- src/hotspot/share/opto/library_call.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hotspot/share/opto/library_call.cpp b/src/hotspot/share/opto/library_call.cpp index ce0957fc793..86b1c26d048 100644 --- a/src/hotspot/share/opto/library_call.cpp +++ b/src/hotspot/share/opto/library_call.cpp @@ -3508,8 +3508,7 @@ bool LibraryCallKit::inline_native_setScopedValueCache() { Node* cache_obj_handle = scopedValueCache_helper(); const TypePtr *adr_type = _gvn.type(cache_obj_handle)->isa_ptr(); - store_to_memory(control(), cache_obj_handle, arr, T_OBJECT, adr_type, - MemNode::unordered); + access_store_at(nullptr, cache_obj_handle, adr_type, arr, _gvn.type(arr), T_OBJECT, IN_NATIVE | MO_UNORDERED); return true; }