-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace MemoryManager implementation with rpmalloc (LMMS#3873)
* Replace MemoryManager implementation with rpmalloc Fixes LMMS#3865 * Travis: Specify OSX image for Qt5 build
- Loading branch information
Showing
15 changed files
with
97 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "src/3rdparty/qt5-x11embed"] | ||
path = src/3rdparty/qt5-x11embed | ||
url = https://github.com/Lukas-W/qt5-x11embed.git | ||
[submodule "src/3rdparty/rpmalloc/rpmalloc"] | ||
path = src/3rdparty/rpmalloc/rpmalloc | ||
url = https://github.com/rampantpixels/rpmalloc.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
set(CMAKE_C_FLAGS "-std=c11") | ||
|
||
add_library(rpmalloc STATIC | ||
rpmalloc/rpmalloc/rpmalloc.c | ||
rpmalloc/rpmalloc/rpmalloc.h | ||
) | ||
|
||
target_include_directories(rpmalloc PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/rpmalloc/rpmalloc | ||
) | ||
|
||
if (NOT LMMS_BUILD_WIN32) | ||
target_compile_definitions(rpmalloc | ||
PRIVATE -D_GNU_SOURCE | ||
) | ||
endif() | ||
|
||
if (CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
target_compile_definitions(rpmalloc | ||
PRIVATE -DENABLE_ASSERTS=1 -DENABLE_VALIDATE_ARGS=1 | ||
) | ||
endif() | ||
|
||
option(LMMS_ENABLE_MALLOC_STATS "Enables statistics for rpmalloc" OFF) | ||
|
||
if (LMMS_ENABLE_MALLOC_STATS) | ||
target_compile_definitions(rpmalloc | ||
PRIVATE -DENABLE_STATISTICS=1 | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.