HomeFreeBSD

zdb: use a heap allocation instead of a huge array on stack

Description

zdb: use a heap allocation instead of a huge array on stack

SPA_MAXBLOCKSIZE is 16 MB and having such a large object on the stack is
not nice in general and it could cause some confusing failures in the
single-user mode where the default stack size of 8 MB is used.

I expect that the upstream would make the same change.

MFC after: 1 week

Details

Provenance
avgAuthored on Nov 24 2017, 10:45 AM
Parents
rG814629dd64a3: Don't let cpu_set_syscall_retval() clobber exec_setregs().
Branches
Unknown
Tags
Unknown

Event Timeline