[libdispatch-changes] [142] trunk/src/shims/malloc_zone.h

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 6 14:41:14 PST 2009


Revision: 142
          http://trac.macosforge.org/projects/libdispatch/changeset/142
Author:   robert at fledge.watson.org
Date:     2009-11-06 14:41:12 -0800 (Fri, 06 Nov 2009)
Log Message:
-----------
Remove the unused malloc_zone_memalign() shim, which depends on the
posix_memalign() API, which is not present on Solaris.

Discovered by:	Joakim Johansson <jocke at tbricks.com>

Modified Paths:
--------------
    trunk/src/shims/malloc_zone.h

Modified: trunk/src/shims/malloc_zone.h
===================================================================
--- trunk/src/shims/malloc_zone.h	2009-11-06 22:28:01 UTC (rev 141)
+++ trunk/src/shims/malloc_zone.h	2009-11-06 22:41:12 UTC (rev 142)
@@ -80,16 +80,6 @@
 	return (realloc(ptr, size));
 }
 
-static inline void *
-malloc_zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size)
-{
-	void *ptr;
-
-	if (posix_memalign(&ptr, alignment, size) < 0)
-		return (NULL);
-	return (ptr);
-}
-
 static inline void
 malloc_zone_free(malloc_zone_t *zone, void *ptr)
 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091106/f4afe360/attachment.html>


More information about the libdispatch-changes mailing list