test whole program
This commit is contained in:
@@ -198,7 +198,7 @@ pagesizes(size_t ps[MAXPAGESIZES])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
INITREGULARALLOC(void) {
|
void __attribute__ ((constructor)) INITREGULARALLOC(void) {
|
||||||
size_t sz;
|
size_t sz;
|
||||||
// Pre Allocate 400 MB
|
// Pre Allocate 400 MB
|
||||||
sz = 1073741824;
|
sz = 1073741824;
|
||||||
@@ -259,10 +259,10 @@ int notrun = 0;
|
|||||||
void* malloc(size_t sz)
|
void* malloc(size_t sz)
|
||||||
{
|
{
|
||||||
// If malloc is called for the first time then allocate huge page
|
// If malloc is called for the first time then allocate huge page
|
||||||
if (notrun == 0) {
|
// if (notrun == 0) {
|
||||||
INITREGULARALLOC();
|
// INITREGULARALLOC();
|
||||||
notrun = 1;
|
// notrun = 1;
|
||||||
}
|
// }
|
||||||
sz = __builtin_align_up(sz, _Alignof(max_align_t));
|
sz = __builtin_align_up(sz, _Alignof(max_align_t));
|
||||||
|
|
||||||
// printf("%d \n", sz);
|
// printf("%d \n", sz);
|
||||||
|
|||||||
Reference in New Issue
Block a user