]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
increase function size even more (see r15095). On s390 this testcase
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 21 Apr 2015 12:27:09 +0000 (12:27 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 21 Apr 2015 12:27:09 +0000 (12:27 +0000)
might use a relative load (e.g. via load address relative long(larl)
for the address) into the literal pool for some constants. 1280 seems
to be enough that the r/o data is copied along the function.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15121

perf/bigcode.c

index 8cb1cd223c819865c949526e1ee2c61f6cfdcc22..8e12d7bff768b7f43ec7488382c2f819fa623fdf 100644 (file)
@@ -20,7 +20,8 @@
 #endif
 #include "tests/sys_mman.h"
 
-#define FN_SIZE   1024     // Must be big enough to hold the compiled f()
+#define FN_SIZE   1280     // Must be big enough to hold the compiled f()
+                           // and any literal pool that might be used
 #define N_LOOPS   20000    // Should be divisible by four
 #define RATIO     4        // Ratio of code sizes between the two modes