Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
- uses: actions/checkout@v3
- name: Run test ubuntu
run: docker build . --file test/DockerfileTest_ubuntu --build-arg VARIANT="ubuntu:24.04" --build-arg GDB_VERSION="16.3" --tag core_analyzer:ubuntu$(date +%s)
- name: Clean up disk space
run: docker system prune -f
- name: Run test redhat
run: docker build . --file test/DockerfileTest_redhat --build-arg VARIANT="redhat/ubi10" --build-arg GDB_VERSION="16.3" --tag core_analyzer:rdht$(date +%s)
- name: Clean up disk space
run: docker system prune -f
- name: Run test fedora
run: docker build . --file test/DockerfileTest_redhat --build-arg VARIANT="fedora:42" --build-arg GDB_VERSION="16.3" --tag core_analyzer:rdht$(date +%s)
- name: Clean up disk space
run: docker system prune -f
- name: Run test suse
run: docker build . --file test/DockerfileTest_suse --build-arg VARIANT="opensuse/leap:16.0" --build-arg GDB_VERSION="16.3" --tag core_analyzer:suse$(date +%s)
- name: Run test 9
- name: Clean up disk space
run: docker system prune -f
- name: Run test gdb 9.2
run: docker build . --file test/DockerfileTest_gdb_9_2 --tag core_analyzer:9_2$(date +%s)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The latest release passed the build and sanity tests (with a few exceptions) on
* Heap Manager
- glibc/ptmalloc
- gperftools/tcmalloc
- microsoft/mimalloc
- jemalloc
- Windows/mscrt
- Darwin
Expand Down
62 changes: 62 additions & 0 deletions build_mimalloc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/usr/bin/env bash

# =============================================================================
# FILENAME : build_mimalloc.sh
# AUTHOR : Michael Yan
# CREATION : 2026-04-02
# Script to build microsoft/mimalloc with specified version.
#
# This script will the do the following steps
# 1. Create working directory
# 2. clone the mimalloc source
# 3. checkout the desired release version
# 4. configure, build and install
# =============================================================================
set -e

if [ "$#" -ne 1 ]
then
echo "Usage: $0 <mimalloc version>"
echo " For example, \"$0 2.2.7\""
echo " Please refer to https://github.com/microsoft/mimalloc/tags"
exit 1
fi

PROJECT_FOLDER=$(pwd)
release_tag=$1
# prefix release tag with 'v' if not already
if [[ $release_tag != v* ]]; then
release_tag="v$release_tag"
fi

echo "Current project folder is $PROJECT_FOLDER"
build_folder=$PROJECT_FOLDER/build
mkdir -p $build_folder
cd $build_folder

# workaround the problem of multi builds from the same source folder, for example, 2.15 and 2.14
rm -rf ./mimalloc

scr_dir="mimalloc"
if [ ! -d $scr_dir ]
then
echo "cloning mimalloc ..."
git clone https://github.com/microsoft/mimalloc.git
fi
cd $scr_dir

echo "checkout $release_tag"
branch_name=mimalloc-$release_tag
if [ -n "$(git branch --list ${branch_name})" ]
then
echo "Branch name $branch_name already exists."
else
git checkout tags/$release_tag -b $branch_name
fi

mkdir -p out/release
cd out/release

echo "building..."
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../..
make clean && make -j 4 && sudo make install
1 change: 1 addition & 0 deletions gdbplus/gdb-12.1/gdb/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ COMMON_SFILES = \
heap_ptmalloc_2_35.c \
heap_tcmalloc.c \
heap_jemalloc.c \
heap_mimalloc.c \
heapcmd.c \
i386-decode.c \
inf-child.c \
Expand Down
Loading
Loading