瀏覽代碼

update GC figures for python

Jeremy Siek 3 年之前
父節點
當前提交
bcf10cb51d
共有 11 個文件被更改,包括 12 次插入5 次删除
  1. 12 5
      book.tex
  2. 二進制
      figs/cheney-python.graffle
  3. 二進制
      figs/cheney-python.pdf
  4. 二進制
      figs/cheney.graffle
  5. 二進制
      figs/cheney.pdf
  6. 二進制
      figs/copy-collect-1-python.graffle
  7. 二進制
      figs/copy-collect-1-python.pdf
  8. 二進制
      figs/copy-collect-2-python.graffle
  9. 二進制
      figs/copy-collect-2-python.pdf
  10. 二進制
      figs/root-stack-python.graffle
  11. 二進制
      figs/root-stack-python.pdf

+ 12 - 5
book.tex

@@ -25,7 +25,7 @@
 
 
 \def\racketEd{0}
 \def\racketEd{0}
 \def\pythonEd{1}
 \def\pythonEd{1}
-\def\edition{0}
+\def\edition{1}
 
 
 % material that is specific to the Racket edition of the book
 % material that is specific to the Racket edition of the book
 \newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
 \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]
 \begin{figure}[tbp]
 \centering
 \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.}
 \caption{A copying collector in action.}
 \label{fig:copying-collector}
 \label{fig:copying-collector}
 \end{figure}
 \end{figure}
@@ -11284,7 +11287,9 @@ then updates the pointers in the popped tuple so they point to the
 newly copied tuples.
 newly copied tuples.
 
 
 \begin{figure}[tbp]
 \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.}
 \caption{Depiction of the Cheney algorithm copying the live tuples.}
 \label{fig:cheney}
 \label{fig:cheney}
 \end{figure}
 \end{figure}
@@ -11344,7 +11349,9 @@ contains the two pointers from the regular stack and also the pointer
 in the second register.
 in the second register.
 
 
 \begin{figure}[tbp]
 \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.}
 \caption{Maintaining a root stack to facilitate garbage collection.}
 \label{fig:shadow-stack}
 \label{fig:shadow-stack}
 \end{figure}
 \end{figure}

二進制
figs/cheney-python.graffle


二進制
figs/cheney-python.pdf


二進制
figs/cheney.graffle


二進制
figs/cheney.pdf


二進制
figs/copy-collect-1-python.graffle


二進制
figs/copy-collect-1-python.pdf


二進制
figs/copy-collect-2-python.graffle


二進制
figs/copy-collect-2-python.pdf


二進制
figs/root-stack-python.graffle


二進制
figs/root-stack-python.pdf