File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ operations. They can be also atomically modified via `+=` and `-=` operators.
61
61
* Declare atomic variables as ` private val ` . You can use just (public) ` val ` in nested classes,
62
62
but make sure they are not accessed outside of your Kotlin source file.
63
63
* Only simple operations on atomic variables _ directly_ are supported.
64
- * * Do not read references on atomic variables into local variables,
65
- e.g. ` top.compareAndSet(...) ` is Ok, while ` val tmp = top; tmp... ` is not.
66
- * * Do not leak references on atomic variables in other way (return, pass as params, etc).
64
+ * Do not read references on atomic variables into local variables,
65
+ e.g. ` top.compareAndSet(...) ` is Ok, while ` val tmp = top; tmp... ` is not.
66
+ * Do not leak references on atomic variables in other way (return, pass as params, etc).
67
67
* Do not introduce complex data flow in parameters to atomic variable operations,
68
68
i.e. ` top.value = complex_expression ` and ` top.compareAndSet(cur, complex_expression) ` are not supported
69
69
(more specifically, ` complex_expression ` should not have branches in its compiled representation).
You can’t perform that action at this time.
0 commit comments