Skip to content
Permalink
Browse files

8235143: C2: No memory state needed in Thread::currentThread() intrinsic

Reviewed-by: mdoerr, jrose
  • Loading branch information
Vladimir Ivanov
Vladimir Ivanov committed Dec 9, 2019
1 parent eabb5cc commit e8496cea836af97d628f501db31bc8c9b3f38ede
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/opto/library_call.cpp
@@ -1087,7 +1087,7 @@ Node* LibraryCallKit::generate_current_thread(Node* &tls_output) {
const Type* thread_type = TypeOopPtr::make_from_klass(thread_klass)->cast_to_ptr_type(TypePtr::NotNull);
Node* thread = _gvn.transform(new ThreadLocalNode());
Node* p = basic_plus_adr(top()/*!oop*/, thread, in_bytes(JavaThread::threadObj_offset()));
Node* threadObj = make_load(NULL, p, thread_type, T_OBJECT, MemNode::unordered);
Node* threadObj = _gvn.transform(LoadNode::make(_gvn, NULL, immutable_memory(), p, p->bottom_type()->is_ptr(), thread_type, T_OBJECT, MemNode::unordered));
tls_output = thread;
return threadObj;
}

0 comments on commit e8496ce

Please sign in to comment.
You can’t perform that action at this time.