Stress copyin for the full allocated page (good for lazy lab).
This commit is contained in:
parent
d940fd122d
commit
843ce77765
|
@ -1757,7 +1757,7 @@ sbrkarg(char *s)
|
||||||
printf("%s: open sbrk failed\n", s);
|
printf("%s: open sbrk failed\n", s);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if ((n = write(fd, a, 10)) < 0) {
|
if ((n = write(fd, a, PGSIZE)) < 0) {
|
||||||
printf("%s: write sbrk failed\n", s);
|
printf("%s: write sbrk failed\n", s);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue