Skip to content

Commit

Permalink
Remove stack threadlocals.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caparow committed Jan 13, 2023
1 parent 490d4bf commit a4eb9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/magnolia1/magnolia.scala
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,8 @@ private[magnolia1] object CompileTimeState {
val depth = c.enclosingMacros.count(m => workSet(m.macroApplication.symbol))
try fn(stack.asInstanceOf[Stack[c.type]], depth)
finally if (depth <= 1) {
stack.clear()
workSet.clear()
threadLocalStack.remove()
threadLocalWorkSet.remove()
}
}
}
Expand Down

0 comments on commit a4eb9bd

Please sign in to comment.