svn commit: r296816 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Pedro Giffuni
pfg at FreeBSD.org
Mon Mar 14 00:52:47 UTC 2016
On 03/13/16 19:34, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Mon Mar 14 00:34:12 2016
> New Revision: 296816
> URL: https://svnweb.freebsd.org/changeset/base/296816
>
> Log:
> libdtrace: use calloc(3) instead of malloc(3) when it makes sense.
>
> calloc(3) is faster and occasionally safer than malloc(3) + bzero(3).
>
> In one case, pointed out by Mark[1], this also cleans up a calculation.
>
> Reviewed by: markj [1]
> MFC after: 1 week
>
> Modified:
> head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
> head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.c
> head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_strtab.c
>
> Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
> ==============================================================================
> --- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c Sun Mar 13 23:32:59 2016 (r296815)
> +++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c Mon Mar 14 00:34:12 2016 (r296816)
> @@ -24,6 +24,7 @@
> */
> /*
> * Copyright (c) 2013, Joyent, Inc. All rights reserved.
> + * Copyright (c) 2016, Pedro Giffuni. All rights reserved.
> */
>
FWIW, I rarely add my copyright to files, however in the case of
CDDL'd files this is a license requirement.
Pedro.
More information about the svn-src-all
mailing list