8133599: Unsafe.getAndSetObject() is no longer intrinsified by c2

Off by 1 error in c2 intrinsic filtering logic

Reviewed-by: dlong, kvn, shade
This commit is contained in:
Roland Westrelin 2015-08-14 00:28:45 +02:00
parent 0baf2f7e8a
commit df82d96834

View File

@ -161,7 +161,7 @@ bool C2Compiler::is_intrinsic_supported(methodHandle method, bool is_virtual) {
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;
}