From owner-cvs-src-old@FreeBSD.ORG Mon Jan 4 14:52:57 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C09E10656B3 for ; Mon, 4 Jan 2010 14:52:57 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 69B728FC15 for ; Mon, 4 Jan 2010 14:52:57 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o04EqvL4085289 for ; Mon, 4 Jan 2010 14:52:57 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o04EqvFo085288 for cvs-src-old@freebsd.org; Mon, 4 Jan 2010 14:52:57 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <201001041452.o04EqvFo085288@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Mon, 4 Jan 2010 14:52:45 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_6 Subject: cvs commit: src/sys/opencrypto deflate.c deflate.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 14:52:57 -0000 bz 2010-01-04 14:52:45 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/opencrypto deflate.c deflate.h Log: SVN rev 201501 on 2010-01-04 14:52:45Z by bz MFC r199895: Change memory managment from a fixed size array to a list. This is needed to avoid running into out of buffer situations where we cannot alloc a new buffer because we hit the array size limit (ZBUF). Use a combined allocation for the struct and the actual data buffer to not increase the number of malloc calls. [1] Defer initialization of zbuf until we actually need it. Make sure the output buffer will be large enough in all cases. Details discussed with: kib [1] Reviewed by: kib [1] Revision Changes Path 1.4.2.3 +67 -52 src/sys/opencrypto/deflate.c 1.2.2.1 +7 -3 src/sys/opencrypto/deflate.h