最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

thread local storage - In C++, is thread_local data aligned and padded to avoid cache aliasing in widely-used C++ implementation

programmeradmin1浏览0评论

I assume that a thread's thread_local data is typically stored in one or more regions of continuous memory. It seems desirable that these regions start at the beginning of a cache line, and be padded so the size is a multiple of the cache line size. Is it a reasonable and de facto highly portable assumption that this is the case?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论