components/desktop/firefox/patches/firefox-39-gc-memory.patch
changeset 6919 7972aae0fb03
parent 5527 611b2d6efdfe
--- a/components/desktop/firefox/patches/firefox-39-gc-memory.patch	Fri Sep 16 07:20:57 2016 -0700
+++ b/components/desktop/firefox/patches/firefox-39-gc-memory.patch	Fri Sep 16 16:06:45 2016 -0700
@@ -26,12 +26,7 @@
  #include <sys/resource.h>
  #include <sys/stat.h>
  #include <sys/types.h>
-@@ -288,89 +283,16 @@ AllocateMappedContent(int fd, size_t off
- 
- // Deallocate mapped memory for object.
- void
- DeallocateMappedContent(void* p, size_t length)
- {
+@@ -346,85 +346,6 @@ DeallocateMappedContent(void* p, size_t
      // TODO: Bug 988813 - Support memory mapped array buffer for Windows platform.
  }
  
@@ -65,6 +60,12 @@
 -    return p;
 -}
 -
+-static void*
+-MapAlignedPagesLastDitch(size_t size, size_t alignment)
+-{
+-    return nullptr;
+-}
+-
 -void
 -UnmapPages(void* p, size_t size)
 -{
@@ -111,11 +112,6 @@
  #elif defined(XP_UNIX)
  
  void
- InitMemorySubsystem()
- {
-     if (pageSize == 0)
-         pageSize = allocGranularity = size_t(sysconf(_SC_PAGESIZE));
- }
 @@ -599,17 +521,17 @@ UnmapPages(void* p, size_t size)
  
  bool