[libc-commits] [libc] [libc] [search] improve hsearch robustness (PR #73896)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 30 05:34:58 PST 2023


================
@@ -14,6 +14,12 @@
 
 namespace LIBC_NAMESPACE {
 LLVM_LIBC_FUNCTION(int, hcreate, (size_t capacity)) {
+  // We follow FreeBSD's implementation here. If the global_hash_table is
----------------
lntue wrote:

Since this case is not specified in the standards, can you document this behavior, maybe in: https://github.com/llvm/llvm-project/blob/main/libc/docs/dev/undefined_behavior.rst ?

https://github.com/llvm/llvm-project/pull/73896


More information about the libc-commits mailing list