Skip to content

Commit

Permalink
Merge pull request #111 from devnexen/fbsd_part4
Browse files Browse the repository at this point in the history
Last part of freebsd portage.
  • Loading branch information
emeryberger authored May 6, 2024
2 parents 111d216 + cce1cb3 commit e111dc6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ExternalProject_Add(googletest

ExternalProject_Add(heap_layers
GIT_REPOSITORY https://github.com/emeryberger/Heap-Layers.git
GIT_TAG a80041cc15174ab82a39bae1cd750b52955c7eef
GIT_TAG b0b2c2c7c5553b79c534f55317a5ab3e7d011379
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/heap_layers-src"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/heap_layers-build"
CONFIGURE_COMMAND ""
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ commit = {
"rules_cc": "aa7ff810cf5ec99ca34f784743b33631b74c2d16",
"googletest": "aa533abfd4232b01f9e57041d70114d5a77e6de0",
"benchmark": "bc5651e54a7e178ca6b1e27e469a9be19cfa62c4", # 1.5.4
"heap_layers": "08ca96cfe11b1dd1c504fb7be613ad00756d568f",
"heap_layers": "b0b2c2c7c5553b79c534f55317a5ab3e7d011379",
}

http_archive(
Expand Down
2 changes: 1 addition & 1 deletion src/fbsd_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ WEAK_REDEF1(void, free, void *);
WEAK_REDEF1(void, cfree, void *);
WEAK_REDEF2(void *, calloc, size_t, size_t);
WEAK_REDEF2(void *, realloc, void *, size_t);
WEAK_REDEF2(void *, reallocarray, void *, size_t, size_t);
WEAK_REDEF3(void *, reallocarray, void *, size_t, size_t);
WEAK_REDEF2(void *, memalign, size_t, size_t);
WEAK_REDEF3(int, posix_memalign, void **, size_t, size_t);
WEAK_REDEF2(void *, aligned_alloc, size_t, size_t);
Expand Down
4 changes: 2 additions & 2 deletions src/testing/unit/alignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ TEST(Alignment, NaturalAlignment) {
TEST(Alignment, NonOverlapping) {
auto heap = ThreadLocalHeap::GetHeap();

const uintptr_t a = reinterpret_cast<uintptr_t>(heap->malloc(-8));
const uintptr_t b = reinterpret_cast<uintptr_t>(heap->malloc(-8));
const auto a = heap->malloc(-8);
const auto b = heap->malloc(-8);

// we should return nullptr for crazy allocations like this.
// Fixes #62
Expand Down
2 changes: 1 addition & 1 deletion src/testing/unit/concurrent_mesh_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static atomic<int> ShouldContinueTest;
// stop-the-world quiescent period for the copy/mremap phase of
// meshing -- copied from libmesh.cc

#ifdef __APPLE__
#if defined(__APPLE__) || defined(__FreeBSD__)
#define PTHREAD_CREATE_THROW
#else
#define PTHREAD_CREATE_THROW throw()
Expand Down
2 changes: 1 addition & 1 deletion src/testing/unit/triple_mesh_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static atomic<int> ShouldContinueTest1;
static atomic<int> ShouldExit2;
static atomic<int> ShouldContinueTest2;

#ifdef __APPLE__
#if defined(__APPLE__) || defined(__FreeBSD__)
#define PTHREAD_CREATE_THROW
#else
#define PTHREAD_CREATE_THROW throw()
Expand Down

0 comments on commit e111dc6

Please sign in to comment.