Skip to content

Commit 0154209

Browse files
committed
---
yaml --- r: 20542 b: refs/heads/snap-stage3 c: 019a41b h: refs/heads/master v: v3
1 parent 96f5985 commit 0154209

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d9cbdf78656def0290e53353539681db612ecf1f
4+
refs/heads/snap-stage3: 019a41bdb09c612e42717df2ae2148a29361842f
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/tutorial.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,15 +1197,14 @@ Rust has three competing goals that inform its view of memory:
11971197

11981198
## How performance considerations influence the memory model
11991199

1200-
Many languages that offer the kinds of memory safety guarantees that
1201-
Rust does have a single allocation strategy: objects live on the heap,
1202-
live for as long as they are needed, and are periodically
1203-
garbage-collected. This approach is straightforward both in concept
1204-
and in implementation, but has significant costs. Languages that take
1205-
this approach tend to aggressively pursue ways to ameliorate
1206-
allocation costs (think the Java Virtual Machine). Rust supports this
1207-
strategy with _shared boxes_: memory allocated on the heap that may be
1208-
referred to (shared) by multiple variables.
1200+
Most languages that offer strong memory safety guarantees rely upon a
1201+
garbage-collected heap to manage all of the objects. This approach is
1202+
straightforward both in concept and in implementation, but has
1203+
significant costs. Languages that take this approach tend to
1204+
aggressively pursue ways to ameliorate allocation costs (think the
1205+
Java Virtual Machine). Rust supports this strategy with _shared
1206+
boxes_: memory allocated on the heap that may be referred to (shared)
1207+
by multiple variables.
12091208

12101209
By comparison, languages like C++ offer very precise control over
12111210
where objects are allocated. In particular, it is common to put them

0 commit comments

Comments
 (0)