Skip to content

Commit

Permalink
Merge pull request rust-lang#397 from rust-lang-nursery/memory-model
Browse files Browse the repository at this point in the history
admit we don't have a memory model
  • Loading branch information
Havvy authored Aug 13, 2018
2 parents bb7d65c + 2d3085f commit ae2a52c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/memory-model.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Memory model

A Rust program's memory consists of a static set of *items* and a *heap*.
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*.
Rust does not yet have a defined memory model. Various academics and industry
are working on various proposals, but for now, this is an under-defined place
in the language.

0 comments on commit ae2a52c

Please sign in to comment.