SERVER-137027ClosedFixed

ObservableMutex's Timer::getTime() performs a syscall on non-x86 and non-arm64 builds

As seen in HELP-101554, for non-x86 and non-arm64 builds, Timer::getTime() in {{ObservableMutex}} [calls std::clock()|https://github.com/10gen/mongo/blob/6b5787c43d011981395c54179e4017f3c230a526/src/mongo/util/observable_mutex.h#L61] which performs a syscall which has performance implications. This was flagged by a customer's performance testing running on s390x which showed significant regressions when upgrading to 8.0.30, the first 8.0 version containing ObservableMutex. Flamegraphs from th

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10258.3.169.0.78.0.37
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.