changeset 9756:cbd4cf7a1097

Fix small mistake in xchg intrinsic.
author rkennke
date Wed, 30 Sep 2015 22:24:04 +0200
parents fe9a5147d1ea
children 98308cb043ca
files src/share/vm/opto/library_call.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp	Wed Sep 30 15:03:21 2015 +0200
+++ b/src/share/vm/opto/library_call.cpp	Wed Sep 30 22:24:04 2015 +0200
@@ -2781,6 +2781,7 @@
     {
       if (kind == LS_xchg) {
         load_store = _gvn.transform(new GetAndSetPNode(control(), mem, adr, newval, adr_type, value_type->is_oopptr()));
+	result = load_store;
       } else {
         assert(kind == LS_cmpxchg, "wrong LoadStore operation");
         load_store = _gvn.transform(new CompareAndSwapPNode(control(), mem, adr, newval, oldval));