Crocmagnon / fatcontext

detects nested contexts in loops or function literals
MIT License
8 stars 2 forks source link

Test and fix cases with nested contexts #9

Closed MichaelUrman closed 3 months ago

MichaelUrman commented 3 months ago

As long as the context is rooted in a non-pointer value that has a new copy in the loop, it is as safe to copy that value as it is to copy the context. So only report such cases when they are indirected and thus shared.

Fixes #8