<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,7 +38,11 @@ namespace rubinius {
     stats::GCStats::get()-&gt;allocate_mature.start();
 #endif
 
+#ifdef USE_DLMALLOC
     obj = reinterpret_cast&lt;Object*&gt;(malloc_.allocate(bytes));
+#else
+    obj = reinterpret_cast&lt;Object*&gt;(malloc(bytes));
+#endif
 
     entries.push_back(obj);
 
@@ -68,7 +72,11 @@ namespace rubinius {
     allocated_objects--;
     allocated_bytes -= obj-&gt;size_in_bytes(object_memory-&gt;state);
 
+#ifdef USE_DLMALLOC
     malloc_.release(reinterpret_cast&lt;void*&gt;(obj));
+#else
+    free(reinterpret_cast&lt;void*&gt;(obj));
+#endif
   }
 
   Object* MarkSweepGC::copy_object(Object* orig) {</diff>
      <filename>vm/gc/marksweep.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,11 @@
 #include &lt;list&gt;
 
 #include &quot;call_frame_list.hpp&quot;
+
+#ifdef USE_DLMALLOC
 #include &quot;util/dlmalloc_cpp.hpp&quot;
+#endif
+
 
 #define MS_COLLECTION_BYTES 10485760
 
@@ -25,7 +29,10 @@ namespace rubinius {
 
   private:
       MarkStack mark_stack_;
+
+#ifdef USE_DLMALLOC
       DLMalloc malloc_;
+#endif
 
   public:
     /* Data members */</diff>
      <filename>vm/gc/marksweep.hpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9b1bd2e3d43dcada42840f8fb8cea55c119fcc0b</id>
    </parent>
  </parents>
  <author>
    <name>Evan Phoenix</name>
    <email>ephoenix@engineyard.com</email>
  </author>
  <url>http://github.com/evanphx/rubinius/commit/477d74c939fbe9e6f3e144cfe87e938bf599fa1d</url>
  <id>477d74c939fbe9e6f3e144cfe87e938bf599fa1d</id>
  <committed-date>2009-03-27T20:30:57-07:00</committed-date>
  <authored-date>2009-03-27T20:30:57-07:00</authored-date>
  <message>Use dlmalloc optiionally</message>
  <tree>b4f641af3bbaf80c6f27b9a72fe374d427964e0f</tree>
  <committer>
    <name>Evan Phoenix</name>
    <email>ephoenix@engineyard.com</email>
  </committer>
</commit>
