Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve memory-model section very slightly.
  • Loading branch information
graydon committed Apr 18, 2015
1 parent f5b2963 commit 744085e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doc/reference.md
Expand Up @@ -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*.
Expand Down

0 comments on commit 744085e

Please sign in to comment.