]> git.lizzy.rs Git - rust.git/commitdiff
Improve memory-model section very slightly.
authorGraydon Hoare <graydon@pobox.com>
Sat, 18 Apr 2015 03:01:03 +0000 (20:01 -0700)
committerGraydon Hoare <graydon@pobox.com>
Sat, 18 Apr 2015 03:01:03 +0000 (20:01 -0700)
src/doc/reference.md

index 477929af3b6f09b0ee3395a9e40078029e450a25..9b1d23494adba3dc115595a228c01c66404eec05 100644 (file)
@@ -3842,8 +3842,10 @@ is to be destroyed.
 # Memory model
 
 A Rust program's memory consists of a static set of *items* and a *heap*.
-Immutable portions of the heap may be shared between threads, mutable portions
-may not.
+Immutable portions of the heap may be safely shared between threads, mutable
+portions may not be safely shared, but several mechanisms for effectively-safe
+sharing of mutable values, built on unsafe code but enforcing a safe locking
+discipline, exist in the standard library.
 
 Allocations in the stack consist of *variables*, and allocations in the heap
 consist of *boxes*.