harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r498820 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c
Date Mon, 22 Jan 2007 21:42:25 GMT
Author: hindessm
Date: Mon Jan 22 13:42:24 2007
New Revision: 498820

URL: http://svn.apache.org/viewvc?view=rev&rev=498820
Log:
Nasty hack that isn't functional but should compile and even run.

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c?view=diff&rev=498820&r1=498819&r2=498820
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c Mon
Jan 22 13:42:24 2007
@@ -310,6 +310,13 @@
    */
   key_t addressKey;
   void *baseAddress;
+#if defined(FREEBSD)
+/*
+ * TODO: This does not work but it does compile.  Need a real fix.  Anyone
+ * know how to reserve memory on FreeBSD?
+ */
+#define SHM_HUGETLB 0
+#endif
   int shmgetFlags = SHM_HUGETLB | IPC_CREAT;
   UDATA largePageSize;
   void *ptr = NULL;



Mime
View raw message