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
  • LLVMJIT.cpp
Find file
BlameHistoryPermalink
  • Ben Clayton's avatar
    LLVMReactor: Drop codegenMutex, now thread safe. · 20cf5c5c
    Ben Clayton authored Jul 01, 2019
    LLVMReactor used to have a Big Fat Global Mutex over the entire
    lifetime of the Nucleus object. This was required as LLVMReactor
    used global variables for storing builder state.
    
    Over the past year, there has been significant code cleanup and
    global state has been reduced to a couple of globals that can now
    be marked thread_local. With all state now being immutable global
    or thread local, we are now able to remove the mutex.
    
    ASAN and TSAN checks for our unittests are clean.
    
    Bug: b/153803432
    Change-Id: Ibe4019fb783f86e734387db431539e915369b488
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/33484Tested-by: 's avatarBen Clayton <bclayton@google.com>
    Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
    20cf5c5c
LLVMJIT.cpp 25.1 KB
EditWeb IDE
×

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