[project @ 2002-11-20 12:34:42 by chak]
[ghc-hetmet.git] / ghc / rts / Storage.h
index 64b31f4..6a7c738 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Storage.h,v 1.43 2002/03/26 10:43:15 simonmar Exp $
+ * $Id: Storage.h,v 1.45 2002/10/21 11:38:54 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -412,7 +412,7 @@ void printMutableList(generation *gen);
 
 
 #undef TEXT_BEFORE_HEAP
-#ifndef mingw32_TARGET_OS
+#if !defined(mingw32_TARGET_OS) && !defined(cygwin32_TARGET_OS)
 #define TEXT_BEFORE_HEAP 1
 #endif
 
@@ -438,20 +438,6 @@ extern unsigned long macho_edata;
                        && is_not_dynamically_loaded_ptr((char *)p) )
 #endif
 
-/* The HEAP_ALLOCED test below is called FOR EVERY SINGLE CLOSURE
- * during GC.  It needs to be FAST.
- *
- * BEWARE: when we're dynamically loading code (for GHCi), make sure
- * that we don't load any code above HEAP_BASE, or this test won't work.
- */
-#ifdef TEXT_BEFORE_HEAP
-# define HEAP_ALLOCED(x)  ((StgPtr)(x) >= (StgPtr)(HEAP_BASE))
-#else
-/* mingw, really */
-# define HEAP_ALLOCED(x)  (is_heap_alloced(x))
-#endif
-
-
 /* --------------------------------------------------------------------------
    Macros for distinguishing data pointers from code pointers
    --------------------------------------------------------------------------