You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix memory leaks and add warm-up step in fixture.c
Memory leaks were addressed with the following changes:
- Valgrind inspection detected memory leaks, with 43,632 bytes lost
across 909 blocks per test.
- Investigation revealed that the initialization function was called
multiple times in the testing loop, reallocating the context array
without freeing prior allocations.
- The initialization is now executed only once, and memory is released
when testing ends, eliminating the leaks.
The measurement function was modified to include a warm-up step that
discards the first batch of data. Key observations and decisions are:
- Tests were conducted using queue insertion and removal functions to
verify constant-time behavior, showing no notable difference with or
without the warm-up step.
- The dudect paper notes potential timing variations that may impact
t-test results, such as cache misses or allocation delays.
- This step is retained to improve t-test precision in future tests,
ensuring alignment with the paper's recommended methodology.
Change-Id: I34b257c2ae545c7c28c0c0be60e43988efc8158d
0 commit comments