|
@@ -25,7 +25,7 @@
|
|
|
|
|
|
\def\racketEd{0}
|
|
|
\def\pythonEd{1}
|
|
|
-\def\edition{0}
|
|
|
+\def\edition{1}
|
|
|
|
|
|
% material that is specific to the Racket edition of the book
|
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
@@ -11242,8 +11242,11 @@ begin with so we will not need to revisit this issue.
|
|
|
|
|
|
\begin{figure}[tbp]
|
|
|
\centering
|
|
|
-\includegraphics[width=\textwidth]{figs/copy-collect-1} \\[5ex]
|
|
|
-\includegraphics[width=\textwidth]{figs/copy-collect-2}
|
|
|
+\racket{\includegraphics[width=\textwidth]{figs/copy-collect-1}}
|
|
|
+\python{\includegraphics[width=\textwidth]{figs/copy-collect-1-python}}
|
|
|
+\\[5ex]
|
|
|
+\racket{\includegraphics[width=\textwidth]{figs/copy-collect-2}}
|
|
|
+\python{\includegraphics[width=\textwidth]{figs/copy-collect-2-python}}
|
|
|
\caption{A copying collector in action.}
|
|
|
\label{fig:copying-collector}
|
|
|
\end{figure}
|
|
@@ -11284,7 +11287,9 @@ then updates the pointers in the popped tuple so they point to the
|
|
|
newly copied tuples.
|
|
|
|
|
|
\begin{figure}[tbp]
|
|
|
-\centering \includegraphics[width=0.9\textwidth]{figs/cheney}
|
|
|
+\centering
|
|
|
+\racket{\includegraphics[width=0.9\textwidth]{figs/cheney}}
|
|
|
+\python{\includegraphics[width=0.9\textwidth]{figs/cheney-python}}
|
|
|
\caption{Depiction of the Cheney algorithm copying the live tuples.}
|
|
|
\label{fig:cheney}
|
|
|
\end{figure}
|
|
@@ -11344,7 +11349,9 @@ contains the two pointers from the regular stack and also the pointer
|
|
|
in the second register.
|
|
|
|
|
|
\begin{figure}[tbp]
|
|
|
-\centering \includegraphics[width=0.60\textwidth]{figs/root-stack}
|
|
|
+ \centering
|
|
|
+ \racket{\includegraphics[width=0.60\textwidth]{figs/root-stack}}
|
|
|
+ \python{\includegraphics[width=0.60\textwidth]{figs/root-stack-python}}
|
|
|
\caption{Maintaining a root stack to facilitate garbage collection.}
|
|
|
\label{fig:shadow-stack}
|
|
|
\end{figure}
|