<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[180359] trunk/Source/bmalloc</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/180359">180359</a></dd>
<dt>Author</dt> <dd>ggaren@apple.com</dd>
<dt>Date</dt> <dd>2015-02-19 12:42:52 -0800 (Thu, 19 Feb 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>bmalloc should implement malloc introspection (to stop false-positive leaks when MallocStackLogging is off)
https://bugs.webkit.org/show_bug.cgi?id=141802

Reviewed by Andreas Kling.

This patch does the bare minimum to stop false positive leaks from
being reported by the Darwin leaks tool. We register each super chunk
as a single object, and then request that the leaks tool scan it.

* bmalloc.xcodeproj/project.pbxproj: Added an abstraction for the malloc
zone introspection API.

* bmalloc/Algorithm.h: Missing #include.

* bmalloc/VMHeap.cpp:
(bmalloc::VMHeap::grow):
* bmalloc/VMHeap.h: Adopt the new abstraction.

* bmalloc/Zone.cpp: Added.
(bmalloc::remoteRead): Helper for reading an object out of another process.
(bmalloc::Zone::enumerator):
(bmalloc::Zone::Zone): Register a malloc zone so that we will participate
in introspection.

* bmalloc/Zone.h: Added.
(bmalloc::Zone::superChunks):
(bmalloc::Zone::addSuperChunk): Use a non-dynamically-allocated vector
since our dynamic allocations will not be scanned by leaks since they
will have the malloc VM tag.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourcebmallocChangeLog">trunk/Source/bmalloc/ChangeLog</a></li>
<li><a href="#trunkSourcebmallocbmallocAlgorithmh">trunk/Source/bmalloc/bmalloc/Algorithm.h</a></li>
<li><a href="#trunkSourcebmallocbmallocVMHeapcpp">trunk/Source/bmalloc/bmalloc/VMHeap.cpp</a></li>
<li><a href="#trunkSourcebmallocbmallocVMHeaph">trunk/Source/bmalloc/bmalloc/VMHeap.h</a></li>
<li><a href="#trunkSourcebmallocbmallocxcodeprojprojectpbxproj">trunk/Source/bmalloc/bmalloc.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourcebmallocbmallocZonecpp">trunk/Source/bmalloc/bmalloc/Zone.cpp</a></li>
<li><a href="#trunkSourcebmallocbmallocZoneh">trunk/Source/bmalloc/bmalloc/Zone.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourcebmallocChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/bmalloc/ChangeLog (180358 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/ChangeLog        2015-02-19 20:36:39 UTC (rev 180358)
+++ trunk/Source/bmalloc/ChangeLog        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2015-02-19  Geoffrey Garen  &lt;ggaren@apple.com&gt;
+
+        bmalloc should implement malloc introspection (to stop false-positive leaks when MallocStackLogging is off)
+        https://bugs.webkit.org/show_bug.cgi?id=141802
+
+        Reviewed by Andreas Kling.
+
+        This patch does the bare minimum to stop false positive leaks from
+        being reported by the Darwin leaks tool. We register each super chunk
+        as a single object, and then request that the leaks tool scan it.
+
+        * bmalloc.xcodeproj/project.pbxproj: Added an abstraction for the malloc
+        zone introspection API.
+
+        * bmalloc/Algorithm.h: Missing #include.
+
+        * bmalloc/VMHeap.cpp:
+        (bmalloc::VMHeap::grow):
+        * bmalloc/VMHeap.h: Adopt the new abstraction.
+
+        * bmalloc/Zone.cpp: Added.
+        (bmalloc::remoteRead): Helper for reading an object out of another process.
+        (bmalloc::Zone::enumerator):
+        (bmalloc::Zone::Zone): Register a malloc zone so that we will participate
+        in introspection.
+
+        * bmalloc/Zone.h: Added.
+        (bmalloc::Zone::superChunks):
+        (bmalloc::Zone::addSuperChunk): Use a non-dynamically-allocated vector
+        since our dynamic allocations will not be scanned by leaks since they
+        will have the malloc VM tag.
+
</ins><span class="cx"> 2015-02-18  Geoffrey Garen  &lt;ggaren@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         bmalloc: VMHeap should keep a record of all of its VM ranges (for malloc introspection)
</span></span></pre></div>
<a id="trunkSourcebmallocbmallocAlgorithmh"></a>
<div class="modfile"><h4>Modified: trunk/Source/bmalloc/bmalloc/Algorithm.h (180358 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/bmalloc/Algorithm.h        2015-02-19 20:36:39 UTC (rev 180358)
+++ trunk/Source/bmalloc/bmalloc/Algorithm.h        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #define Algorithm_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;Algorithm.h&quot;
</span><ins>+#include &quot;BAssert.h&quot;
</ins><span class="cx"> #include &lt;algorithm&gt;
</span><span class="cx"> #include &lt;cstdint&gt;
</span><span class="cx"> #include &lt;cstddef&gt;
</span></span></pre></div>
<a id="trunkSourcebmallocbmallocVMHeapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/bmalloc/bmalloc/VMHeap.cpp (180358 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/bmalloc/VMHeap.cpp        2015-02-19 20:36:39 UTC (rev 180358)
+++ trunk/Source/bmalloc/bmalloc/VMHeap.cpp        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -40,7 +40,9 @@
</span><span class="cx"> void VMHeap::grow()
</span><span class="cx"> {
</span><span class="cx">     SuperChunk* superChunk = SuperChunk::create();
</span><del>-    m_superChunks.push(superChunk);
</del><ins>+#if BPLATFORM(DARWIN)
+    m_zone.addSuperChunk(superChunk);
+#endif
</ins><span class="cx"> 
</span><span class="cx">     SmallChunk* smallChunk = superChunk-&gt;smallChunk();
</span><span class="cx">     for (auto* it = smallChunk-&gt;begin(); it != smallChunk-&gt;end(); ++it)
</span></span></pre></div>
<a id="trunkSourcebmallocbmallocVMHeaph"></a>
<div class="modfile"><h4>Modified: trunk/Source/bmalloc/bmalloc/VMHeap.h (180358 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/bmalloc/VMHeap.h        2015-02-19 20:36:39 UTC (rev 180358)
+++ trunk/Source/bmalloc/bmalloc/VMHeap.h        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -34,6 +34,9 @@
</span><span class="cx"> #include &quot;SegregatedFreeList.h&quot;
</span><span class="cx"> #include &quot;SmallChunk.h&quot;
</span><span class="cx"> #include &quot;Vector.h&quot;
</span><ins>+#if BPLATFORM(DARWIN)
+#include &quot;Zone.h&quot;
+#endif
</ins><span class="cx"> 
</span><span class="cx"> namespace bmalloc {
</span><span class="cx"> 
</span><span class="lines">@@ -61,7 +64,9 @@
</span><span class="cx">     Vector&lt;SmallPage*&gt; m_smallPages;
</span><span class="cx">     Vector&lt;MediumPage*&gt; m_mediumPages;
</span><span class="cx">     SegregatedFreeList m_largeRanges;
</span><del>-    Vector&lt;SuperChunk*&gt; m_superChunks;
</del><ins>+#if BPLATFORM(DARWIN)
+    Zone m_zone;
+#endif
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> inline SmallPage* VMHeap::allocateSmallPage()
</span></span></pre></div>
<a id="trunkSourcebmallocbmallocZonecpp"></a>
<div class="addfile"><h4>Added: trunk/Source/bmalloc/bmalloc/Zone.cpp (0 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/bmalloc/Zone.cpp                                (rev 0)
+++ trunk/Source/bmalloc/bmalloc/Zone.cpp        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -0,0 +1,72 @@
</span><ins>+/*
+ * Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#include &quot;Sizes.h&quot;
+#include &quot;Zone.h&quot;
+
+namespace bmalloc {
+
+// The memory analysis API requires the contents of this struct to be a static
+// constant in the program binary. The leaks process will load this struct
+// out of the program binary (and not out of the running process).
+static malloc_introspection_t introspect = {
+    .enumerator = Zone::enumerator
+};
+
+template&lt;typename T&gt; static void remoteRead(task_t task, memory_reader_t reader, vm_address_t pointer, T&amp; result)
+{
+    void* tmp;
+    (*reader)(task, pointer, sizeof(T), &amp;tmp);
+    memcpy(&amp;result, tmp, sizeof(T));
+}
+
+// This function runs inside the leaks process.
+kern_return_t Zone::enumerator(task_t task, void* context, unsigned type_mask, vm_address_t zone_address, memory_reader_t reader, vm_range_recorder_t recorder)
+{
+    Zone remoteZone;
+    remoteRead(task, reader, zone_address, remoteZone);
+    
+    for (auto* superChunk : remoteZone.superChunks()) {
+        vm_range_t range = { reinterpret_cast&lt;vm_address_t&gt;(superChunk), superChunkSize };
+
+        if ((type_mask &amp; MALLOC_PTR_REGION_RANGE_TYPE))
+            (*recorder)(task, context, MALLOC_PTR_REGION_RANGE_TYPE, &amp;range, 1);
+
+        if ((type_mask &amp; MALLOC_PTR_IN_USE_RANGE_TYPE))
+            (*recorder)(task, context, MALLOC_PTR_IN_USE_RANGE_TYPE, &amp;range, 1);
+    }
+
+    return 0;
+}
+
+Zone::Zone()
+{
+    version = 4;
+    zone_name = &quot;WebKit Malloc&quot;;
+    introspect = &amp;bmalloc::introspect;
+    malloc_zone_register(this);
+}
+
+} // namespace bmalloc
</ins></span></pre></div>
<a id="trunkSourcebmallocbmallocZoneh"></a>
<div class="addfile"><h4>Added: trunk/Source/bmalloc/bmalloc/Zone.h (0 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/bmalloc/Zone.h                                (rev 0)
+++ trunk/Source/bmalloc/bmalloc/Zone.h        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -0,0 +1,73 @@
</span><ins>+/*
+ * Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#ifndef Zone_h
+#define Zone_h
+
+#include &quot;FixedVector.h&quot;
+#include &lt;malloc/malloc.h&gt;
+
+namespace bmalloc {
+
+class SuperChunk;
+
+class Zone : public malloc_zone_t {
+public:
+    // Enough capacity to track a 64GB heap, so probably enough for anything.
+    static const size_t capacity = 2048;
+
+    static kern_return_t enumerator(task_t, void* context, unsigned type_mask, vm_address_t, memory_reader_t, vm_range_recorder_t);
+
+    Zone();
+
+    void addSuperChunk(SuperChunk*);
+    FixedVector&lt;SuperChunk*, capacity&gt;&amp; superChunks() { return m_superChunks; }
+    
+private:
+    // This vector has two purposes:
+    //     (1) It stores the list of SuperChunks so that we can enumerate
+    //         each SuperChunk and request that it be scanned if reachable.
+    //     (2) It roots a pointer to each SuperChunk in a global non-malloc
+    //         VM region, making each SuperChunk appear reachable, and therefore
+    //         ensuring that the leaks tool will scan it. (The leaks tool
+    //         conservatively scans all writeable VM regions that are not malloc
+    //         regions, and then scans malloc regions using the introspection API.)
+    // This prevents the leaks tool from reporting false positive leaks for
+    // objects pointed to from bmalloc memory -- though it also prevents the
+    // leaks tool from finding any leaks in bmalloc memory.
+    FixedVector&lt;SuperChunk*, capacity&gt; m_superChunks;
+};
+
+inline void Zone::addSuperChunk(SuperChunk* superChunk)
+{
+    if (m_superChunks.size() == m_superChunks.capacity())
+        return;
+    
+    m_superChunks.push(superChunk);
+}
+
+} // namespace bmalloc
+
+#endif // Zone_h
</ins></span></pre></div>
<a id="trunkSourcebmallocbmallocxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/bmalloc/bmalloc.xcodeproj/project.pbxproj (180358 => 180359)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/bmalloc/bmalloc.xcodeproj/project.pbxproj        2015-02-19 20:36:39 UTC (rev 180358)
+++ trunk/Source/bmalloc/bmalloc.xcodeproj/project.pbxproj        2015-02-19 20:42:52 UTC (rev 180359)
</span><span class="lines">@@ -16,6 +16,8 @@
</span><span class="cx">                 143CB81C19022BC900B16A45 /* StaticMutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 143CB81A19022BC900B16A45 /* StaticMutex.cpp */; };
</span><span class="cx">                 143CB81D19022BC900B16A45 /* StaticMutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 143CB81B19022BC900B16A45 /* StaticMutex.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 1440AFC91A95142400837FAA /* SuperChunk.h in Headers */ = {isa = PBXBuildFile; fileRef = 1440AFC81A95142400837FAA /* SuperChunk.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><ins>+                1440AFCB1A95261100837FAA /* Zone.h in Headers */ = {isa = PBXBuildFile; fileRef = 1440AFCA1A95261100837FAA /* Zone.h */; settings = {ATTRIBUTES = (Private, ); }; };
+                1440AFCD1A9527AF00837FAA /* Zone.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1440AFCC1A9527AF00837FAA /* Zone.cpp */; };
</ins><span class="cx">                 1448C30018F3754600502839 /* mbmalloc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1448C2FF18F3754300502839 /* mbmalloc.cpp */; };
</span><span class="cx">                 1448C30118F3754C00502839 /* bmalloc.h in Headers */ = {isa = PBXBuildFile; fileRef = 1448C2FE18F3754300502839 /* bmalloc.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 14895D911A3A319C0006235D /* Environment.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14895D8F1A3A319C0006235D /* Environment.cpp */; };
</span><span class="lines">@@ -92,6 +94,8 @@
</span><span class="cx">                 143E29E918CAE8BE00FE8A0F /* MediumPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MediumPage.h; path = bmalloc/MediumPage.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 143E29ED18CAE90500FE8A0F /* SmallPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SmallPage.h; path = bmalloc/SmallPage.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1440AFC81A95142400837FAA /* SuperChunk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SuperChunk.h; path = bmalloc/SuperChunk.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                1440AFCA1A95261100837FAA /* Zone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Zone.h; path = bmalloc/Zone.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                1440AFCC1A9527AF00837FAA /* Zone.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Zone.cpp; path = bmalloc/Zone.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 144469E417A46BFE00F9EA1D /* Cache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = Cache.cpp; path = bmalloc/Cache.cpp; sourceTree = &quot;&lt;group&gt;&quot;; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
</span><span class="cx">                 144469E517A46BFE00F9EA1D /* Cache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = Cache.h; path = bmalloc/Cache.h; sourceTree = &quot;&lt;group&gt;&quot;; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
</span><span class="cx">                 144469FD17A61F1F00F9EA1D /* PerThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = PerThread.h; path = bmalloc/PerThread.h; sourceTree = &quot;&lt;group&gt;&quot;; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
</span><span class="lines">@@ -260,6 +264,8 @@
</span><span class="cx">                                 1440AFC81A95142400837FAA /* SuperChunk.h */,
</span><span class="cx">                                 144F7BFB18BFC517003537F3 /* VMHeap.cpp */,
</span><span class="cx">                                 144F7BFC18BFC517003537F3 /* VMHeap.h */,
</span><ins>+                                1440AFCA1A95261100837FAA /* Zone.h */,
+                                1440AFCC1A9527AF00837FAA /* Zone.cpp */,
</ins><span class="cx">                         );
</span><span class="cx">                         name = heap;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="lines">@@ -305,6 +311,7 @@
</span><span class="cx">                                 14C919C918FCC59F0028DB43 /* BPlatform.h in Headers */,
</span><span class="cx">                                 14DD788C18F48CAE00950702 /* LargeChunk.h in Headers */,
</span><span class="cx">                                 14DD789218F48CFC00950702 /* EndTag.h in Headers */,
</span><ins>+                                1440AFCB1A95261100837FAA /* Zone.h in Headers */,
</ins><span class="cx">                                 140FA00519CE4B6800FFD3C8 /* LineMetadata.h in Headers */,
</span><span class="cx">                                 14DD78CC18F48D7500950702 /* PerThread.h in Headers */,
</span><span class="cx">                                 14DD78B418F48D6B00950702 /* Chunk.h in Headers */,
</span><span class="lines">@@ -433,6 +440,7 @@
</span><span class="cx">                                 14F271C818EA3990008C152F /* ObjectType.cpp in Sources */,
</span><span class="cx">                                 14F271C518EA397E008C152F /* Deallocator.cpp in Sources */,
</span><span class="cx">                                 14F271C418EA397B008C152F /* Cache.cpp in Sources */,
</span><ins>+                                1440AFCD1A9527AF00837FAA /* Zone.cpp in Sources */,
</ins><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                 };
</span></span></pre>
</div>
</div>

</body>
</html>