From kristen.eisenberg at yahoo.com Thu Oct 13 15:37:05 2011 From: kristen.eisenberg at yahoo.com (Kristen Eisenberg) Date: Thu, 13 Oct 2011 06:37:05 -0700 (PDT) Subject: [nhc-bugs] Fixing "OS allocated a heap in high memory" Message-ID: <1318513025.93141.YahooMailNeo@web122301.mail.ne1.yahoo.com> Hey guys, Recent changes to malloc on OpenBSD mean that nhc98 builds now die with the "OS allocated a heap in high memory" error, as malloc is putting things above the 0x80000000 line. Switching the heap allocation to use mmap with a hint to allocate somewhere lower fixes it at least on x86/openbsd. The ghc testsuite runs, for example. The mmap code is stolen from MBlock.c in ghc. Any options on this? Is it reasonable? (I'd like to use it as a custom patch in the OpenBSD port of nhc98, but want to check I'm not doing anything hideously wrong :) Kristen Eisenberg Billige Fl?ge Marketing GmbH Emanuelstr. 3, 10317 Berlin Deutschland Telefon: +49 (33) 5310967 Email: utebachmeier at gmail.com Site: http://flug.airego.de - Billige Fl?ge vergleichen -------------- next part -------------- An HTML attachment was scrubbed... URL: