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
  • third_party
  • marl
  • src
  • scheduler.cpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Marl: Suppress MemorySanitizer false-positive · 15478fd3
    Nicolas Capens authored May 27, 2021
    Worker::current is a static thread_local which gets intialized to null,
    which gets checked for in Scheduler::Fiber::current(). Unfortunately
    MemorySanitizer does not observe the initialization when Marl is used
    within a shared library, when the Linux dynamic loader is not
    instrumented and its TLS initialization is not otherwise intercepted and
    handled correctly.
    
    This change decorates Scheduler::Fiber::current() with
    __attribute__((no_sanitize_memory)) to suppress instrumenting it with
    use-of-uninitialized-data checks.
    
    Bug: chromium:1211047
    Change-Id: I61b584922d9aba5d67991ce916c69102734f2b61
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54610Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    15478fd3
scheduler.cpp 22.9 KB
EditWeb IDE
×

Replace scheduler.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.