Skip to content

Commit c648d98

Browse files
committed
revert now that tsan has been made to call atexit() when dso == NULL.
lsan and asan will need to be fixed too.
1 parent 23ff804 commit c648d98

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/libc/stdlib/atexit.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: atexit.c,v 1.33 2025/10/13 20:50:48 christos Exp $ */
1+
/* $NetBSD: atexit.c,v 1.34 2025/10/14 20:29:08 christos Exp $ */
22

33
/*-
44
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
3131

3232
#include <sys/cdefs.h>
3333
#if defined(LIBC_SCCS) && !defined(lint)
34-
__RCSID("$NetBSD: atexit.c,v 1.33 2025/10/13 20:50:48 christos Exp $");
34+
__RCSID("$NetBSD: atexit.c,v 1.34 2025/10/14 20:29:08 christos Exp $");
3535
#endif /* LIBC_SCCS and not lint */
3636

3737
#include "reentrant.h"
@@ -175,9 +175,7 @@ __cxa_atexit_internal(void (*func)(void *), void *arg, void *dso)
175175
int
176176
__cxa_atexit(void (*func)(void *), void *arg, void *dso)
177177
{
178-
#if 0
179178
_DIAGASSERT(dso != NULL);
180-
#endif
181179
return (__cxa_atexit_internal(func, arg, dso));
182180
}
183181

0 commit comments

Comments
 (0)