Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weig...@gr13.net>
---
 mfbt/Poison.cpp | 34 +---------------------------------
 1 file changed, 1 insertion(+), 33 deletions(-)

diff --git a/mfbt/Poison.cpp b/mfbt/Poison.cpp
index b2767011d..e9981764f 100644
--- a/mfbt/Poison.cpp
+++ b/mfbt/Poison.cpp
@@ -14,7 +14,7 @@
 #include "mozilla/Assertions.h"
 #ifdef _WIN32
 # include <windows.h>
-#elif !defined(__OS2__)
+#else
 # include <unistd.h>
 # include <sys/mman.h>
 # ifndef MAP_ANON
@@ -76,38 +76,6 @@ GetDesiredRegionSize()
 
 #define RESERVE_FAILED 0
 
-#elif defined(__OS2__)
-static void*
-ReserveRegion(uintptr_t aRegion, uintptr_t aSize)
-{
-  // OS/2 doesn't support allocation at an arbitrary address,
-  // so return an address that is known to be invalid.
-  return (void*)0xFFFD0000;
-}
-
-static void
-ReleaseRegion(void* aRegion, uintptr_t aSize)
-{
-  return;
-}
-
-static bool
-ProbeRegion(uintptr_t aRegion, uintptr_t aSize)
-{
-  // There's no reliable way to probe an address in the system
-  // arena other than by touching it and seeing if a trap occurs.
-  return false;
-}
-
-static uintptr_t
-GetDesiredRegionSize()
-{
-  // Page size is fixed at 4k.
-  return 0x1000;
-}
-
-#define RESERVE_FAILED 0
-
 #else // Unix
 
 #include "mozilla/TaggedAnonymousMemory.h"
-- 
2.11.0.rc0.7.gbe5a750

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to