# HG changeset patch # User rkennke # Date 1443644644 -7200 # Node ID cbd4cf7a10978481f5fd10329778b1589f08c581 # Parent fe9a5147d1ea10a43e2146ffbc79c75b47f45b76 Fix small mistake in xchg intrinsic. diff -r fe9a5147d1ea -r cbd4cf7a1097 src/share/vm/opto/library_call.cpp --- 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));