harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r589284 - in /harmony/enhanced/drlvm/trunk/vm: gc_cc/src/init.cpp gc_gen/src/common/gc_platform.h vmcore/src/util/linux/signals_ia32.cpp
Date Sun, 28 Oct 2007 07:16:46 GMT
Author: hindessm
Date: Sun Oct 28 00:16:45 2007
New Revision: 589284

URL: http://svn.apache.org/viewvc?rev=589284&view=rev
Log:
Fix constants for FreeBSD.

Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_cc/src/init.cpp
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_platform.h
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/gc_cc/src/init.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/init.cpp?rev=589284&r1=589283&r2=589284&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_cc/src/init.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_cc/src/init.cpp Sun Oct 28 00:16:45 2007
@@ -37,6 +37,10 @@
 #include <sys/mman.h>
 #endif
 
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
 // Variables partially sorted by usage pattern. Should optimize cache lines
 
 unsigned int heap_mark_phase;

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_platform.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_platform.h?rev=589284&r1=589283&r2=589284&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_platform.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_platform.h Sun Oct 28 00:16:45 2007
@@ -28,8 +28,12 @@
 
 #include <assert.h>
 
-#ifdef __linux__
+#if defined(__linux__) || defined(FREEBSD)
 #include <ctype.h>
+#endif
+
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
 #endif
 
 #include <apr_time.h>

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp?rev=589284&r1=589283&r2=589284&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp Sun Oct 28 00:16:45
2007
@@ -346,7 +346,12 @@
     res = (char*) mmap(stack_addr - stack_size,
             stack_mapping_size,
             PROT_READ | PROT_WRITE,
-            MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN,
+            MAP_FIXED | MAP_PRIVATE |
+#if defined(FREEBSD)
+              MAP_ANON | MAP_STACK, 
+#else
+              MAP_ANONYMOUS | MAP_GROWSDOWN,
+#endif
             -1,
             0);
     // stack should be mapped, checks result



Mime
View raw message