malloclab patched finally

This commit is contained in:
2025-06-04 17:06:19 +08:00
parent 628a771975
commit 23d48ee092
12 changed files with 18575 additions and 6 deletions

17
malloclab/traces/trace_check.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# 检查 traces 目录下所有 trace 文件是否可以运行
TRACE_DIR="traces"
TRACE_LIST="TRACE_LIST.txt"
# 清空 TRACE_LIST.txt
> "$TRACE_LIST"
# 遍历所有 .rep 文件
for trace in "$TRACE_DIR"/*.rep; do
echo "Testing $trace..."
if ./malloc -f "$trace" > /dev/null 2>&1; then
echo "$(basename "$trace")" >> "$TRACE_LIST"
fi
done
echo "Updated $TRACE_LIST with runnable traces."