openbsd malloc on alpha

Peter Palfrader peter at
Sun Mar 16 22:51:01 UTC 2008


it turns out the problem is that the pagesize on alpha is 8k.

-#if defined(__sparc__)
+#if defined(__sparc__) || defined (__alpha__)
 #define        malloc_pageshift        13U
 #endif /* __sparc__ */

"fixes" the issue, but it's certainly not a nice fix.

We should probably be using getpagesize() to find out the page size.
I'm unsure if it's safe to use it at compile time and assume it will
work on all the subarchs that the binary will run on.

                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal | `. `'      Operating System
                           |   `-

More information about the tor-dev mailing list