<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Raymond Toy pushed to branch rtoy-mmap-anon-control-and-binding-stacks at <a href="https://gitlab.common-lisp.net/cmucl/cmucl">cmucl / cmucl</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/bcb73a5e954df5b6003b0ac8cb7e0a9cf29995ab">bcb73a5e</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-10-03T14:26:17Z</i>
</div>
<pre class='commit-message'>Simplify make_hole:  just pass in address and size.</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/lisp/solaris-os.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/bcb73a5e954df5b6003b0ac8cb7e0a9cf29995ab#diff-0'>
<strong>
src/lisp/solaris-os.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/lisp/solaris-os.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/lisp/solaris-os.c
</span><span style="color: #aaaaaa">@@ -435,13 +435,13 @@ static unsigned long *space_size[] = {
</span> #define HOLE_SIZE 0x2000
 
 void
<span style="color: #000000;background-color: #ffdddd">-make_hole(int k)
</span><span style="color: #000000;background-color: #ddffdd">+make_hole(void *start_start, size_t space_size)
</span> {
     os_vm_address_t hole;
 
     /* Make holes of the appropriate size for desired spaces */
 
<span style="color: #000000;background-color: #ffdddd">-    hole = spaces[k] + *space_size[k];
</span><span style="color: #000000;background-color: #ddffdd">+    hole = space_start + space_size;
</span> 
     if (os_validate(hole, HOLE_SIZE) == NULL) {
         fprintf(stderr,
<span style="color: #aaaaaa">@@ -463,8 +463,8 @@ make_holes(void)
</span>      * stacks are handled in make_stack_holes.
      */
 
<span style="color: #000000;background-color: #ffdddd">-    make_hole(0);               /* Read-only space */
-    make_hole(1);               /* Static space */
</span><span style="color: #000000;background-color: #ddffdd">+    make_hole(spaces[0], sapce_sizes[0]); /* Read-only space */
+    make_hole(spaces[1], space_sizes[1]); /* Static space */
</span>     
     /* Round up the dynamic_space_size to the nearest SPARSE_BLOCK_SIZE */
     dynamic_space_size = round_up_sparse_size(dynamic_space_size);
<span style="color: #aaaaaa">@@ -495,8 +495,8 @@ make_holes(void)
</span> void
 make_stack_holes(void)
 {
<span style="color: #000000;background-color: #ffdddd">-    make_hole(2);
-    make_hole(3);
</span><span style="color: #000000;background-color: #ddffdd">+    make_hole(control_stack, control_stack_size);
+    make_hole(binding_stack, binding_stack_size);
</span> }
     
 void *
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/bcb73a5e954df5b6003b0ac8cb7e0a9cf29995ab">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.common-lisp.net/cmucl/cmucl/commit/bcb73a5e954df5b6003b0ac8cb7e0a9cf29995ab"}}</script>
</p>
</div>
</body>
</html>