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
  • PragmaInternals.hpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Implement Pragma() for Reactor MemorySanitizer instrumentation · c9991d46
    Nicolas Capens authored Jun 16, 2021
    Enabling MemorySanitizer instrumentation for all Reactor routines can
    have too big of a performance impact. To support selective
    instrumentation, Pragma(MemorySanitizerInstrumentation, true) can be
    called to enable it for the next routine that gets created.
    
    It must be called before the Function<> constructor. Pragma state is
    thread local, so Pragma(MemorySanitizerInstrumentation, false) must be
    called after the routine has been created, to disable it again if
    instrumentation is not desired for subsequent routines created in this
    thread.
    
    Note that REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION=true enables
    MemorySanitizer instrumentation for Reactor routines even if the pragma
    state is false.
    
    Bug: b/191050320
    Change-Id: Ie71aadeae140e85bda31554788288e138df0d08c
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54988
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    c9991d46
PragmaInternals.hpp 818 Bytes
EditWeb IDE
×

Replace PragmaInternals.hpp

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.