Switch to SharedMutex in SharedProfileEntry
commitfb20e7a1b0a7f33451d233ee6572fbd3bdd58d55
authorGiuseppe Ottaviano <ott@fb.com>
Thu, 26 May 2022 14:27:34 +0000 (26 07:27 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 May 2022 14:27:34 +0000 (26 07:27 -0700)
tree490cb2d649b620e386de9b22d08eb20660c90086
parent4a4b923bae917ad2581dfb4b51ccd741699ee5c6
Switch to SharedMutex in SharedProfileEntry

Summary: `std::mutex` is 40 bytes, so that leaves only 24 bytes in the cache line for `value`, and in addition it's not easily inlineable, so switch to `SharedMutex`, which is only 4 bytes (though likely to take 8 due to alignment).

Reviewed By: mofarrell

Differential Revision: D36567527

fbshipit-source-id: 3ab63a87ad81600490389cdd2f96b52ead43d71e
hphp/runtime/vm/jit/shared-profile.cpp
hphp/runtime/vm/jit/shared-profile.h