trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geor...@apache.org
Subject svn commit: r907898 - /incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc
Date Tue, 09 Feb 2010 03:10:44 GMT
Author: georgep
Date: Tue Feb  9 03:10:44 2010
New Revision: 907898

URL: http://svn.apache.org/viewvc?rev=907898&view=rev
Log:
TS-148: This patch '0001-TS148_patch1.diff.patch' fixes the fast-path assumption that malloc()
returns 16-byte aligned memory in the fcn 'ink_memalign()'.
Review: John P.

Modified:
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_memory.cc?rev=907898&r1=907897&r2=907898&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc Tue Feb  9 03:10:44 2010
@@ -261,7 +261,7 @@
   void *ptr;
 
 #ifdef HAVE_POSIX_MEMALIGN
-  if (alignment <= 16)
+  if (alignment <= 8)
     return ink_malloc(size);
 
   if (size == (1024 * 1024)) {



Mime
View raw message