Skip to content

Commit

Permalink
Fix ThreadLocalUsage documentation formatting.
Browse files Browse the repository at this point in the history
Fixes #897

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181668862
  • Loading branch information
NightlyNexus authored and ronshapiro committed Jan 12, 2018
1 parent c50fc8c commit 75b9321
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/bugpattern/ThreadLocalUsage.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
`ThreadLocal`s should be stored in `static` variables to avoid memory leaks. If
a `ThreadLocal` is stored in an instance (non-static) variable, there will be `M
* N` instances of the `ThreadLocal` value where `M` is the number of threads,
and `N` is the number of instances of the containing class. Each instance may
remain live as long the thread that stored it stays live.
a `ThreadLocal` is stored in an instance (non-static) variable, there will be
<code>M \* N</code> instances of the `ThreadLocal` value where `M` is the number
of threads, and `N` is the number of instances of the containing class. Each
instance may remain live as long the thread that stored it stays live.

Example:

Expand Down

0 comments on commit 75b9321

Please sign in to comment.