64-bit cleanness: Converted malloc() et al to use SizeT rather than Int.
This required some tricks with casting to maintain Memcheck's silly (ie.
negative) arg checking. The allocator was also changed accordingly. It
should now be able to allocate more than 4GB blocks on 64-bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2906 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/core.h b/coregrind/core.h
index 42af4c2..3c792f1 100644
--- a/coregrind/core.h
+++ b/coregrind/core.h
@@ -442,16 +442,16 @@
// Round-up size for --sloppy-malloc=yes.
#define VG_SLOPPY_MALLOC_SZB 4
-extern void* VG_(arena_malloc) ( ArenaId arena, Int nbytes );
+extern void* VG_(arena_malloc) ( ArenaId arena, SizeT nbytes );
extern void VG_(arena_free) ( ArenaId arena, void* ptr );
-extern void* VG_(arena_calloc) ( ArenaId arena, Int alignment,
- Int nmemb, Int nbytes );
-extern void* VG_(arena_realloc) ( ArenaId arena, void* ptr, Int alignment,
- Int size );
-extern void* VG_(arena_malloc_aligned) ( ArenaId aid, Int req_alignB,
- Int req_pszB );
+extern void* VG_(arena_calloc) ( ArenaId arena, SizeT alignment,
+ SizeT nmemb, SizeT nbytes );
+extern void* VG_(arena_realloc) ( ArenaId arena, void* ptr, SizeT alignment,
+ SizeT size );
+extern void* VG_(arena_malloc_aligned) ( ArenaId aid, SizeT req_alignB,
+ SizeT req_pszB );
-extern Int VG_(arena_payload_szB) ( ArenaId aid, void* payload );
+extern SizeT VG_(arena_payload_szB) ( ArenaId aid, void* payload );
extern void VG_(sanity_check_malloc_all) ( void );