< prev index next >

src/share/vm/shark/sharkIntrinsics.cpp

Print this page
rev 12711 : 8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
Reviewed-by: psandoz, dholmes, thartmann
Contributed-by: ron.pressler@oracle.com, claes.redestad@oracle.com

*** 1,7 **** /* ! * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2009 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as --- 1,7 ---- /* ! * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright 2009 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as
*** 64,74 **** // java.lang.Thread case vmIntrinsics::_currentThread: return true; // Unsafe ! case vmIntrinsics::_compareAndSwapInt: return true; default: if (SharkPerformanceWarnings) { warning( --- 64,74 ---- // java.lang.Thread case vmIntrinsics::_currentThread: return true; // Unsafe ! case vmIntrinsics::_compareAndSetInt: return true; default: if (SharkPerformanceWarnings) { warning(
*** 138,149 **** case vmIntrinsics::_currentThread: do_Thread_currentThread(); break; // Unsafe ! case vmIntrinsics::_compareAndSwapInt: ! do_Unsafe_compareAndSwapInt(); break; default: ShouldNotReachHere(); } --- 138,149 ---- case vmIntrinsics::_currentThread: do_Thread_currentThread(); break; // Unsafe ! case vmIntrinsics::_compareAndSetInt: ! do_Unsafe_compareAndSetInt(); break; default: ShouldNotReachHere(); }
*** 239,249 **** SharkType::oop_type(), "threadObj"), true)); } ! void SharkIntrinsics::do_Unsafe_compareAndSwapInt() { // Pop the arguments Value *x = state()->pop()->jint_value(); Value *e = state()->pop()->jint_value(); SharkValue *empty = state()->pop(); assert(empty == NULL, "should be"); --- 239,249 ---- SharkType::oop_type(), "threadObj"), true)); } ! void SharkIntrinsics::do_Unsafe_compareAndSetInt() { // Pop the arguments Value *x = state()->pop()->jint_value(); Value *e = state()->pop()->jint_value(); SharkValue *empty = state()->pop(); assert(empty == NULL, "should be");
< prev index next >