Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Reactor
  • Pragma.cpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Work around MemorySanitizer false-positive · 314508f7
    Nicolas Capens authored Jul 01, 2021
    The initialization of static thread-local data is not observed by
    MemorySanitizer when inside a shared library, leading to false-positive
    use-of-uninitialized-data errors:
    https://github.com/google/sanitizers/issues/1409
    
    We work around this by assigning an initial value to it ourselves on
    first use. Note that since the flag to check whether this
    initialization has already been done is itself a static thread-local,
    we must suppress the MemorySanitizer check with a function attribute.
    
    Bug: b/191050320
    Change-Id: I356a89f90ff099e08a12f5562e0545ed14d93ee3
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/55328Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@google.com>
    314508f7
Pragma.cpp 2.36 KB
EditWeb IDE
×

Replace Pragma.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.