[SERVER-29712] Polyfill std::hardware_{con,de}structive_interference_size Created: 19/Jun/17  Updated: 30/Oct/23  Resolved: 21/Jun/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.5.9

Type: New Feature Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-24219 Make AlignedLockStats alignment respe... Closed
is depended on by SERVER-29462 Eliminate possibility of false sharin... Closed
is depended on by SERVER-29534 the unaligned variables in counter.h ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-07-10
Participants:

 Description   

See http://en.cppreference.com/w/cpp/thread/hardware_destructive_interference_size

Providing a polyfill for this constant will give us a portable way to describe alignment requirements on types and objects w.r.t. cache line sizes.



 Comments   
Comment by Githook User [ 21/Jun/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-29712 Use more architecture knowledge for cache line sizing
Branch: master
https://github.com/mongodb/mongo/commit/28b670f8eb565c822dfe4d2567b386e17478f3ab

Comment by Andrew Morrow (Inactive) [ 20/Jun/17 ]

Re-opening to address concerns about over alignment.

Comment by Githook User [ 20/Jun/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-29712 Add a polyfill for std::hardware_constructive_interference_size
Branch: master
https://github.com/mongodb/mongo/commit/e05068da490e900c68d5254a7336d6f7b9354ad6

Generated at Thu Feb 08 04:21:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.