From: Julian Seward Date: Tue, 4 Jun 2002 16:48:29 +0000 (+0000) Subject: malloc_aligned: allow 262144 X-Git-Tag: svn/VALGRIND_1_0_3~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92ffcd061875326c0b53b6ab43b3122ea8030d92;p=thirdparty%2Fvalgrind.git malloc_aligned: allow 262144 git-svn-id: svn://svn.valgrind.org/valgrind/trunk@376 --- diff --git a/coregrind/vg_malloc2.c b/coregrind/vg_malloc2.c index 98d62bc912..ab87bdb5c5 100644 --- a/coregrind/vg_malloc2.c +++ b/coregrind/vg_malloc2.c @@ -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; diff --git a/vg_malloc2.c b/vg_malloc2.c index 98d62bc912..ab87bdb5c5 100644 --- a/vg_malloc2.c +++ b/vg_malloc2.c @@ -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;