Skip to content

Commit e8496ce

Browse files
author
Vladimir Ivanov
committedDec 9, 2019
8235143: C2: No memory state needed in Thread::currentThread() intrinsic
Reviewed-by: mdoerr, jrose
1 parent eabb5cc commit e8496ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/opto/library_call.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ Node* LibraryCallKit::generate_current_thread(Node* &tls_output) {
10871087
const Type* thread_type = TypeOopPtr::make_from_klass(thread_klass)->cast_to_ptr_type(TypePtr::NotNull);
10881088
Node* thread = _gvn.transform(new ThreadLocalNode());
10891089
Node* p = basic_plus_adr(top()/*!oop*/, thread, in_bytes(JavaThread::threadObj_offset()));
1090-
Node* threadObj = make_load(NULL, p, thread_type, T_OBJECT, MemNode::unordered);
1090+
Node* threadObj = _gvn.transform(LoadNode::make(_gvn, NULL, immutable_memory(), p, p->bottom_type()->is_ptr(), thread_type, T_OBJECT, MemNode::unordered));
10911091
tls_output = thread;
10921092
return threadObj;
10931093
}

0 commit comments

Comments
 (0)
Failed to load comments.