[roll] Roll fuchsia [runtime] Optimize extra atomic acquire load in _zx_thread_self

libsync and pthread mutexes call _zx_thread_self() when acquiring a lock
to retrieve a 32 bit thread identity value with the low bit clear. This
function retrieves the handle value at an offset from the thread
pointer using zxr_thread_get_handle() to do the lookup. This function
can also be used to retrieve the handle value for a different thread and
as such a synchronizing atomic acquire load was introduced in commit
1db2dc84f6f24fee118f750e8ea8aa2278d9e5de to make these cases safe. This
load is not needed when retrieving the calling thread's handle value.

This adds a zxr routine to be used only for the calling thread's value
and uses that in _zx_thread_self(). This removes an atomic acquire load
from the mutex acquisition path.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1207605
Original-Revision: 46a89539bab86e6f47cd5e2f3826d306df038ebc
GitOrigin-RevId: b0ee35a952a2ad48196f87f9edb187c7e107d2ef
Change-Id: I44b6124aabbec24fabdec8e79cdb3001ea868322
1 file changed
tree: 4c52569ed0ccdc8fb04828e520c22f0ca38ac7e2
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.