diff options
author | Mark Johnston <markj@FreeBSD.org> | 2013-05-19 17:14:36 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2013-05-19 17:14:36 +0000 |
commit | ba6cafe2658af1c21976319a42457aa226555a86 (patch) | |
tree | 191b586f26c3dbc072d2f8d29909688c6d134bdb /cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h | |
parent | 0d8d860f6e10fda66467ab0602d2829964be741e (diff) | |
parent | f8c38c2b9aa27b6399e9c9d91209ec50fde27a8c (diff) | |
download | src-ba6cafe2658af1c21976319a42457aa226555a86.tar.gz src-ba6cafe2658af1c21976319a42457aa226555a86.zip |
Re-introduce another part of r249367. This commit fixes a register leak in
dt_cg_ptrsize() and generally cleans up some of the error handling around
register allocation.
This change corresponds to part of illumos-gate commit e5803b76927480:
3025 register leak in D code generation
Reviewed by: pfg
Obtained from: illumos
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=250812
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h index 25e64d048e60..35082846d9d1 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_regset.h @@ -19,16 +19,19 @@ * * CDDL HEADER END */ + /* * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* + * Copyright (c) 2012 by Delphix. All rights reserved. + */ + #ifndef _DT_REGSET_H #define _DT_REGSET_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #ifdef __cplusplus @@ -45,6 +48,7 @@ extern void dt_regset_destroy(dt_regset_t *); extern void dt_regset_reset(dt_regset_t *); extern int dt_regset_alloc(dt_regset_t *); extern void dt_regset_free(dt_regset_t *, int); +extern void dt_regset_assert_free(dt_regset_t *); #ifdef __cplusplus } |