Commit a03fd335 authored by Pete Gillin's avatar Pete Gillin
Browse files

Restore more visibility checks in AtomicLongFieldUpdater.

This change was accidentally omitted from http://r.android.com/644539.
That change restored the check when AtomicLong.VM_SUPPORTS_LONG_CAS is
true only. This change restores it when that value is false.

Before this change, AtomicIntegerFieldUpdaterTest in jsr166-tests was
failing in an environment where that value is false. This change must
fixes that.

Bug: 75269521
Test: `cts-tradefed run cts-dev -m CtsLibcoreJsr166TestCases -t jsr166.AtomicLongFieldUpdaterTest` in a build where AtomicLong.VM_SUPPORTS_LONG_CAS is hardcoded to false
Change-Id: I155f427ba624e4ea293a0983de4f7e65c24aff55
parent 8373e591
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment