Skip to content

Commit

Permalink
8235143: C2: No memory state needed in Thread::currentThread() intrinsic
Browse files Browse the repository at this point in the history
Reviewed-by: mdoerr, jrose
  • Loading branch information
Vladimir Ivanov committed Dec 9, 2019
1 parent eabb5cc commit e8496ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/library_call.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit e8496ce

Please sign in to comment.