8380236: macOS build is broken by JDK-8359706

Reviewed-by: kbarrett
This commit is contained in:
David Holmes 2026-03-17 07:18:40 +00:00
parent b0831572e2
commit 3a109f49fe

View File

@ -2613,7 +2613,7 @@ void os::Bsd::print_open_file_descriptors(outputStream* st, char* buf, size_t bu
pid_t my_pid;
// ensure the scratch buffer is big enough for at least one FD info struct
assert(buflen >= sizeof(struct proc_fdinfo));
precond(buflen >= sizeof(struct proc_fdinfo));
kern_return_t kres = pid_for_task(mach_task_self(), &my_pid);
if (kres != KERN_SUCCESS) {
st->print_cr("Open File Descriptors: unknown");
@ -2639,4 +2639,4 @@ void os::Bsd::print_open_file_descriptors(outputStream* st, char* buf, size_t bu
#else
st->print_cr("Open File Descriptors: unknown");
#endif
}
}