Skip to content
  • Jonathan Peyton's avatar
    Fix team reuse with foreign threads · 2b749b33
    Jonathan Peyton authored
    After hot teams were enabled by default, the library started using levels kept
    in the team structure. The levels are broken in case foreign thread exits and
    puts its team into the pool which is then re-used by another foreign thread.
    The broken behavior observed is when printing the levels for each new team, one
    gets 1, 2, 1, 2, 1, 2, etc. This makes the library believe that every other
    team is nested which is incorrect. What is wanted is for the levels to be
    1, 1, 1, etc.
    
    Differential Revision: http://reviews.llvm.org/D19980
    
    llvm-svn: 269363
    2b749b33
Loading