Skip to content

Commit

Permalink
Removing HTML enteties.
Browse files Browse the repository at this point in the history
  • Loading branch information
happi committed Apr 7, 2017
1 parent 0fd1030 commit cabec7f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 38 deletions.
2 changes: 1 addition & 1 deletion compiler.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ xref:fig_compiler_passes[Compiler Passes].
v
+---------------+ +---------------+
| Parse | -> | user defined |
| Transform | <- | transformation|
| Transform | <- | transformation|
+---------------+ +---------------+
|
+---------> (.Pbeam) [makedep]
Expand Down
68 changes: 31 additions & 37 deletions memory.asciidoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
[[CH-Memory]]
== The Memory Subsystem: Stacks, Heaps and Garbage Collection (7p)

// Cover these fields:
// high_water, old_hend, old_htop, old_heap,
// gen_gcs, max_gen_gcs, off_heap, mbuf, mbuf_sz, psd, bin_vheap_sz,
// bin_vheap_mature, bin_old_vheap_sz, bin_old_vheap

== The Memory Subsystem: Stacks, Heaps and Garbage Collection

Before we dive into the memory subsystem of ERTS, we need to have some
basic vocabulary and understanding of the general memory layout of a
Expand Down Expand Up @@ -575,25 +569,25 @@ similar to:
[[fig-list_layout]]
----
ADR BINARY VALUE + DESCRIPTION
hend -&gt; +-------- -------- -------- --------+
hend -> +-------- -------- -------- --------+
| ... |
| ... |
|00000000 00000000 00000000 10000001| 128 + list tag ---------------+
stop -&gt; | | |
stop ->; | | |
|
htop -&gt; | | |
htop ->; | | |
132 |00000000 00000000 00000000 01111001| 120 + list tag -------------- | -+
128 |00000000 00000000 00000110 10001111| (H) 104 bsl 4 + small int tag &lt;+ |
128 |00000000 00000000 00000110 10001111| (H) 104 bsl 4 + small int tag <+ |
124 |00000000 00000000 00000000 01110001| 112 + list tag ----------------- | -+
120 |00000000 00000000 00000110 01011111| (e) 101 bsl 4 + small int tag &lt;---+ |
120 |00000000 00000000 00000110 01011111| (e) 101 bsl 4 + small int tag <---+ |
116 |00000000 00000000 00000000 01110001| 112 + list tag -------------------- | -+
112 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag &lt;------+ |
112 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag <------+ |
108 |00000000 00000000 00000000 01110001| 96 + list tag ----------------------- | -+
104 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag &lt;---------+ |
104 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag <---------+ |
100 |11111111 11111111 11111111 11111011| NIL |
96 |00000000 00000000 00000110 11111111| (o) 111 bsl 4 + small int tag &lt;------------+
96 |00000000 00000000 00000110 11111111| (o) 111 bsl 4 + small int tag <------------+
| ... |
heap -&gt; +-----------------------------------+
heap -> +-----------------------------------+
----

Expand Down Expand Up @@ -690,27 +684,27 @@ look like this just before the send in p1/1:
|
|
ADR BINARY VALUE + DESCRIPTION |
hend -&gt; +-------- -------- -------- --------+ |
hend -> +-------- -------- -------- --------+ |
| ... | |
| ... | |
stop -&gt; | | |
stop -> | | |
|
htop -&gt; | | |
htop -> | | |
144 |00000000 00000000 00000000 01000001| 128+CONS ---------------+
140 |00000000 00000000 00000000 01000001| 128+CONS ---------------+
136 |00000000 00000000 00000000 10000000| 2+ARITYVAL &lt;---+ |
136 |00000000 00000000 00000000 10000000| 2+ARITYVAL <---+ |
132 |00000000 00000000 00000000 01111001| 120+CONS -------------- | -+
128 |00000000 00000000 00000110 10001111| (H) 104 bsl 4 + small int tag &lt;+ |
128 |00000000 00000000 00000110 10001111| (H) 104 bsl 4 + small int tag <+ |
124 |00000000 00000000 00000000 01110001| 112+CONS ----------------- | -+
120 |00000000 00000000 00000110 01011111| (e) 101 bsl 4 + small int tag &lt;---+ |
120 |00000000 00000000 00000110 01011111| (e) 101 bsl 4 + small int tag <---+ |
116 |00000000 00000000 00000000 01110001| 112+CONS -------------------- | -+
112 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag &lt;------+ |
112 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag <------+ |
108 |00000000 00000000 00000000 01110001| 96+CONS ----------------------- | -+
104 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag &lt;---------+ |
104 |00000000 00000000 00000110 11001111| (l) 108 bsl 4 + small int tag <---------+ |
100 |11111111 11111111 11111111 11111011| NIL |
96 |00000000 00000000 00000110 11111111| (o) 111 bsl 4 + small int tag &lt;------------+
96 |00000000 00000000 00000110 11111111| (o) 111 bsl 4 + small int tag <------------+
| ... |
heap -&gt; +-----------------------------------+
heap -> +-----------------------------------+
P2
Expand Down Expand Up @@ -752,28 +746,28 @@ erl_heap_fragment:
Uint64 overhead; 0 |
unsigned alloc_size; 23 |
unsigned used_size; 23 |
Eterm mem: 2+ARITYVAL &lt;------+
Eterm mem: 2+ARITYVAL <------+
&amp;mem+3*WS+1 ---+
&amp;mem+13*WS+1 ------+
(H*16)+15 &lt;--+ |
(H*16)+15 <--+ |
&amp;mem+5*WS+1 --+ |
(e*16)+15 &lt;-+ |
(e*16)+15 <-+ |
&amp;mem+7*WS+1 ----| |
(l*16)+15 &lt;---+ |
(l*16)+15 <---+ |
&amp;mem+9*WS+1 ---+ |
(l*16)+15 &lt;--+ |
(l*16)+15 <--+ |
&amp;mem+11*WS+1 ----+ |
(o*16)+15 &lt;---+ |
(o*16)+15 <---+ |
NIL |
(H*16)+15 &lt;-----+
(H*16)+15 <-----+
&amp;mem+15*WS+1 --+
(e*16)+15 &lt;-+
(e*16)+15 <-+
&amp;mem+17*WS+1 ----|
(l*16)+15 &lt;---+
(l*16)+15 <---+
&amp;mem+19*WS+1 ---+
(l*16)+15 &lt;--+
(l*16)+15 <--+
&amp;mem+21*WS+1 ----+
(o*16)+15 &lt;---+
(o*16)+15 <---+
NIL</pre>
----

Expand Down

0 comments on commit cabec7f

Please sign in to comment.