]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
malloc_aligned: allow 262144
authorJulian Seward <jseward@acm.org>
Tue, 4 Jun 2002 16:48:29 +0000 (16:48 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 4 Jun 2002 16:48:29 +0000 (16:48 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@376

coregrind/vg_malloc2.c
vg_malloc2.c

index 98d62bc912751d9db16fb5ed9bf51bc1f1e0d88f..ab87bdb5c5c0e644525f22fab376a96d4e2a53fa 100644 (file)
@@ -1078,13 +1078,13 @@ void* VG_(malloc_aligned) ( ArenaId aid, Int req_alignB, Int req_pszB )
    vg_assert(req_pszB < 0x7FFFFFF0);
 
    /* Check that the requested alignment seems reasonable; that is, is
-      a power of 2.  There must be a better way to do this.  What is
-      it? */
+      a power of 2.  */
    switch (req_alignB) {
       case 4:
       case 8: case 16: case 32: case 64: case 128: case 256: 
       case 512: case 1024: case 2048: case 4096: case 8192: 
       case 16384: case 32768: case 65536: case 131072: 
+      case 262144:
       case 1048576: 
          /* can't be bothered to calculate larger ones */
          break;
index 98d62bc912751d9db16fb5ed9bf51bc1f1e0d88f..ab87bdb5c5c0e644525f22fab376a96d4e2a53fa 100644 (file)
@@ -1078,13 +1078,13 @@ void* VG_(malloc_aligned) ( ArenaId aid, Int req_alignB, Int req_pszB )
    vg_assert(req_pszB < 0x7FFFFFF0);
 
    /* Check that the requested alignment seems reasonable; that is, is
-      a power of 2.  There must be a better way to do this.  What is
-      it? */
+      a power of 2.  */
    switch (req_alignB) {
       case 4:
       case 8: case 16: case 32: case 64: case 128: case 256: 
       case 512: case 1024: case 2048: case 4096: case 8192: 
       case 16384: case 32768: case 65536: case 131072: 
+      case 262144:
       case 1048576: 
          /* can't be bothered to calculate larger ones */
          break;