OpenBSD CVS

CVS log for src/usr.bin/make/job.c


[BACK] Up to [local] / src / usr.bin / make

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_4_2


Revision 1.62 / (download) - annotate - [select for diffs], Tue Jun 12 16:33:27 2007 UTC (16 years, 11 months ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.61: +12 -7 lines
Diff to previous 1.61 (colored)

Fix a 10-year-old pointer-arithmetic bug in make,
introduced on 1997-12-16, make/job.c revision 1.8.

This should fix the CPU spinout bug when running make with a -j option --
from now on, `make -j24` successfully completes the kernel build on my
Core 2 Duo, instead of halting the build and eating one CPU until ^C.

Found and debugged by myself, with the help of malloc.conf options.

"definitely a bug, nice catch" beck@
"let's also fix a [potential] memory leak in realloc" by millert@
"should go in" deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.