Loading...
--- libmalloc/libmalloc-715.140.5/tests/pgm_allocator.c
+++ libmalloc/libmalloc-646.40.3/tests/pgm_allocator.c
@@ -49,8 +49,7 @@
 	zone.max_allocations = 2; // is_full
 	zone.num_slots = 2; zone.rr_slot_index = 1; // choose_available_slot
 	zone.max_metadata = 4; zone.num_metadata = 2; // choose_metadata
-	zone.left_align_pct = 10; // choose_offset_on_page
-	expected_upper_bound = 100; rand_ret_value = 10; // choose_offset_on_page
+	expected_upper_bound = 2; rand_ret_value = false; // choose_offset_on_page
 	expected_trace_buffers[0] = metadata[2].trace_buffer; // capture_trace
 	expected_trace_sizes[0] = 216; collect_trace_ret_value = 88;
 	zone.begin = 640000; // page_addr
@@ -111,8 +110,7 @@
 	slots[0] = (slot_t){ .state = ss_allocated, .metadata = 1, .size = 5 }; // lookup_size
 	zone.max_allocations = 2; // is_full
 	zone.num_slots = 2; // allocate
-	zone.left_align_pct = 10; // allocate -> choose_offset_on_page
-	expected_upper_bound = 100; rand_ret_value = 9; // allocate -> choose_offset_on_page
+	expected_upper_bound = 2; rand_ret_value = true; // allocate -> choose_offset_on_page
 	zone.max_metadata = 1; // allocate -> choose_metadata
 	expected_trace_buffers[0] = metadata[0].trace_buffer; // allocate -> capture_trace
 	expected_trace_sizes[0] = 216;
@@ -131,8 +129,7 @@
 	expected_size_ptr = 1337; size_ret_value = 5; // wrapped_size
 	zone.max_allocations = 2; // is_full
 	zone.num_slots = 2; // allocate
-	zone.left_align_pct = 10; // allocate -> choose_offset_on_page
-	expected_upper_bound = 100; rand_ret_value = 9; // allocate -> choose_offset_on_page
+	expected_upper_bound = 2; rand_ret_value = true; // allocate -> choose_offset_on_page
 	zone.max_metadata = 1; // allocate -> choose_metadata
 	expected_trace_buffers[0] = metadata[0].trace_buffer; // allocate -> capture_trace
 	expected_trace_sizes[0] = 216;