Skip to content

Conversation

@ahornby
Copy link
Contributor

@ahornby ahornby commented Jan 12, 2026

Summary:
Fix the cmake tests when jemalloc is found

memory_mallctl_helper_test wasn't linking to jemalloc when jemalloc was found so no way mallctl could work

Also link the string test to jemalloc if found as it has a check for it

Differential Revision: D88594886

)

Summary:

Fix intermittent failure in HeapVectorTypes.SimpleSetTest.  When 32 isn’t present and all elements are <32, lower_bound(32) legitimately returns end(). The test immediately did if (*it == 32), which dereferences an end iterator, causing UB.

Added a guard it == s2.end() before dereferencing.

There was also flakiness if 32 is present and if s2.lower_bound(32); returned a lower value than 32 as then 32 not erased.  Fixed by explicity erasing 32 before insert

Differential Revision: D88592733
Summary:
Fix the cmake tests when jemalloc is found

memory_mallctl_helper_test wasn't linking to jemalloc when jemalloc was found so no way mallctl could work

Also link the string test to jemalloc if found as it has a check for it

Differential Revision: D88594886
@meta-cla meta-cla bot added the CLA Signed label Jan 12, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 12, 2026

@ahornby has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88594886.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant