You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/01/22 22:42:25 UTC

svn commit: r498820 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyvmem.c

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;