8133599: Unsafe.getAndSetObject() is no longer intrinsified by c2
authorroland
Fri, 14 Aug 2015 00:28:45 +0200
changeset 32371 8815f2d1447f
parent 32370 38b7b5772b4f
child 32372 b82e88dcb26c
child 32391 01e2f5e916c7
8133599: Unsafe.getAndSetObject() is no longer intrinsified by c2 Summary: off by 1 error in c2 intrinsic filtering logic Reviewed-by: dlong, kvn, shade
hotspot/src/share/vm/opto/c2compiler.cpp
--- a/hotspot/src/share/vm/opto/c2compiler.cpp	Sat Aug 15 02:54:18 2015 +0200
+++ b/hotspot/src/share/vm/opto/c2compiler.cpp	Fri Aug 14 00:28:45 2015 +0200
@@ -161,7 +161,7 @@
   vmIntrinsics::ID id = method->intrinsic_id();
   assert(id != vmIntrinsics::_none, "must be a VM intrinsic");
 
-  if (id < vmIntrinsics::FIRST_ID || id >= vmIntrinsics::LAST_COMPILER_INLINE) {
+  if (id < vmIntrinsics::FIRST_ID || id > vmIntrinsics::LAST_COMPILER_INLINE) {
     return false;
   }