OSDN Git Service

Provide "ordered" put calls.
authorAndy McFadden <fadden@android.com>
Fri, 17 Sep 2010 21:54:24 +0000 (14:54 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 17 Sep 2010 21:54:24 +0000 (14:54 -0700)
commit038d1b8b5138c3e2dae912417255ad7a7592cf5c
tree1bbfb7aeb25c12cac85db0106092fc22d6ca7df4
parente50255299c3df62ce4dabccd16c1c0d89dad2e96
Provide "ordered" put calls.

Implement "ordered" Unsafe "put" calls, which are less expensive than
the volatile puts but provide more guarantees that plain puts.  The
implementation is just a clone of the basic "put" functions with the
new store fence macro inserted.

Bug 2579452

Change-Id: If08f5d51d3ea47a4ff0925a86ad8e168721c9e55
vm/native/sun_misc_Unsafe.c