<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>

</head>
<body>
<style type="text/css">
img {
max-width: 100%; height: auto;
}
</style>
<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/951611cf060cc3977db76fb05a252e981a227484">951611cf</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2016-05-09T21:02:47-07:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap">Add RELOCATABLE_STACK_START to control stack spaces

When RELOCATABLE_STACK_START is defined, the control stack, binding
stack, and sigalt stack are located wherever mmap finds room for them.

Currently only implemented for Darwin, but should work for linux and
solaris.  We enable this by default on Darwin now.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class="file-stats">
<a href="#620f2ecad2bb6f74b2fcd0134963a841" style="text-decoration: none">
src/lisp/Config.x86_darwin
</a>
</li>
<li class="file-stats">
<a href="#ad29afc395839758d41094872298bd0d" style="text-decoration: none">
src/lisp/x86-validate-darwin.h
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="620f2ecad2bb6f74b2fcd0134963a841">
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/951611cf060cc3977db76fb05a252e981a227484#diff-0">
<strong>
src/lisp/Config.x86_darwin
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="background: #ffdddd; color: #000000">--- a/src/lisp/Config.x86_darwin
</span><span style="background: #ddffdd; color: #000000">+++ b/src/lisp/Config.x86_darwin
</span><span style="color: #aaaaaa">@@ -6,7 +6,7 @@ include Config.x86_common
</span> # you have the 10.5 SDK available.
 MIN_VER = -mmacosx-version-min=10.5
 
<span style="background: #ffdddd; color: #000000">-CPPFLAGS += -DDARWIN $(MIN_VER) -m32
</span><span style="background: #ddffdd; color: #000000">+CPPFLAGS += -DDARWIN $(MIN_VER) -m32 -DRELOCATABLE_STACK_START
</span> CFLAGS += -g3 -mtune=generic
 ASFLAGS += -g3 $(MIN_VER)
 
</code></pre>

<br>
</li>
<li id="ad29afc395839758d41094872298bd0d">
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/951611cf060cc3977db76fb05a252e981a227484#diff-1">
<strong>
src/lisp/x86-validate-darwin.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="background: #ffdddd; color: #000000">--- a/src/lisp/x86-validate-darwin.h
</span><span style="background: #ddffdd; color: #000000">+++ b/src/lisp/x86-validate-darwin.h
</span><span style="color: #aaaaaa">@@ -18,12 +18,12 @@
</span> #define STATIC_SPACE_START        (SpaceStart_TargetStatic)
 #define STATIC_SPACE_SIZE      (0x0ffff000)    /* 256MB - 1 page */
 
<span style="background: #ffdddd; color: #000000">-#if 0
</span><span style="background: #ddffdd; color: #000000">+#ifndef RELOCATABLE_STACK_START
</span> #define BINDING_STACK_START       (0x38000000)
 #endif
 #define BINDING_STACK_SIZE     (0x07fff000)    /* 128MB - 1 page */
 
<span style="background: #ffdddd; color: #000000">-#if 0
</span><span style="background: #ddffdd; color: #000000">+#ifdef RELOCATABLE_STACK_START
</span> #define CONTROL_STACK_START       (0x40000000)
 #endif
 
<span style="color: #aaaaaa">@@ -33,7 +33,7 @@
</span>  */
 #define CONTROL_STACK_SIZE     (0x07fdf000)    /* 128MB - SIGSTKSZ - 1 page */
 
<span style="background: #ffdddd; color: #000000">-#if 0
</span><span style="background: #ddffdd; color: #000000">+#ifndef RELOCATABLE_STACK_START
</span> #define SIGNAL_STACK_START        (0x47fe0000)    /* One page past the end of the control stack */
 #endif
 #define SIGNAL_STACK_SIZE      SIGSTKSZ
</code></pre>

<br>
</li>

</div>
<div class="footer" style="margin-top: 10px">
<p style="color: #777; font-size: small">

<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/951611cf060cc3977db76fb05a252e981a227484">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.common-lisp.net.
If you'd like to receive fewer emails, you can
adjust your notification settings.
<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/951611cf060cc3977db76fb05a252e981a227484"}}</script>
</p>
</div>
</body>
</html>