ealanos: Let larson benchmark check if allocated memory is in canonical address space.

This commit is contained in:
Michael Mueller
2025-06-20 17:35:49 +02:00
parent 7539dca746
commit 44bdf5fcc4

View File

@@ -394,6 +394,7 @@ void runloops(long sleep_cnt, int num_chunks )
#endif
blksize[cblks] = blk_size ;
assert(blkp[cblks] != NULL);
assert(blkp[cblks] < (void *)0x7FFF80000000UL);
}
while(TRUE){
@@ -637,6 +638,7 @@ static void * exercise_heap( void *pinput)
pdea->blksize[victim] = blk_size ;
assert(pdea->array[victim] != NULL);
assert(pdea->array[victim] < (void*)0x7FFF80000000UL);
pdea->cAllocs++;
@@ -647,7 +649,6 @@ static void * exercise_heap( void *pinput)
[[maybe_unused]] volatile char ch = *((char *)pdea->array[victim]);
*chptr = 'b';
if (stopflag) break;
}
@@ -784,7 +785,7 @@ void Libc::Component::construct(Libc::Env &env)
min_size = config.attribute_value("min_size", 8);
max_size = config.attribute_value("max_size", 1000);
chperthread = config.attribute_value("chperthread", 5000);
num_rounds = config.attribute_value("rounds", 100);
num_rounds = config.attribute_value("rounds", 1000);
seed = config.attribute_value("seed", 4141);
max_threads = config.attribute_value("max_threads", 32);
min_threads = config.attribute_value("min_threads", 1);