Skip to content

Commit

Permalink
Support incremental collection on NetBSD
Browse files Browse the repository at this point in the history
* include/private/gcconfig.h [NETBSD] (MPROTECT_VDB): Define macro.
* os_dep.c [MPROTECT_VDB && !DARWIN && NETBSD] (CODE_OK): Define to
true.
  • Loading branch information
ivmai committed Dec 28, 2024
1 parent 3aa10ed commit 8ea9f5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/private/gcconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ extern int _end[];
extern char etext[];
# define DATASTART ((ptr_t)etext)
# endif
# define MPROTECT_VDB
#endif /* NETBSD */

#ifdef NEXT
Expand Down
3 changes: 2 additions & 1 deletion os_dep.c
Original file line number Diff line number Diff line change
Expand Up @@ -3370,7 +3370,8 @@ is_header_found_async(const void *p)
# elif defined(IRIX5)
# define CODE_OK (si->si_code == EACCES)
# elif defined(AIX) || defined(COSMO) || defined(CYGWIN32) \
|| defined(HAIKU) || defined(HURD) || defined(LINUX)
|| defined(HAIKU) || defined(HURD) || defined(LINUX) \
|| defined(NETBSD)
/* Linux: Empirically c.trapno == 14, on IA32, but is that useful? */
/* Should probably consider alignment issues on other architectures. */
# define CODE_OK TRUE
Expand Down

0 comments on commit 8ea9f5e

Please sign in to comment.