Skip to content

Commit 54eaed1

Browse files
committed
Merge branch 'dev'
2 parents ea6b3e9 + 304c919 commit 54eaed1

File tree

379 files changed

+46118
-17276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+46118
-17276
lines changed

.appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ install:
3131
- set PATH=c:\msys64\%MSYSTEM%\bin;c:\msys64\usr\bin;%PATH%
3232
- if defined MSVC call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %MSVC%
3333
- if defined MSVC pacman --noconfirm -Rsc mingw-w64-%CPU%-gcc gcc
34-
- pacman --noconfirm -Suy mingw-w64-%CPU%-make
3534

3635
build_script:
3736
- bash -c "autoconf"

.cirrus.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,43 @@ env:
33
ARCH: amd64
44

55
task:
6+
matrix:
7+
env:
8+
DEBUG_CONFIG: --enable-debug
9+
env:
10+
DEBUG_CONFIG: --disable-debug
11+
matrix:
12+
- env:
13+
PROF_CONFIG: --enable-prof
14+
- env:
15+
PROF_CONFIG: --disable-prof
16+
matrix:
17+
- name: 64-bit
18+
env:
19+
CC:
20+
CXX:
21+
- name: 32-bit
22+
env:
23+
CC: cc -m32
24+
CXX: c++ -m32
25+
matrix:
26+
- env:
27+
UNCOMMON_CONFIG:
28+
- env:
29+
UNCOMMON_CONFIG: --with-lg-page=16 --with-malloc-conf=tcache:false
630
freebsd_instance:
731
matrix:
8-
image: freebsd-12-0-release-amd64
9-
image: freebsd-11-2-release-amd64
32+
image: freebsd-12-3-release-amd64
1033
install_script:
1134
- sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
1235
- pkg upgrade -y
1336
- pkg install -y autoconf gmake
1437
script:
1538
- autoconf
16-
#- ./configure ${COMPILER_FLAGS:+ CC="$CC $COMPILER_FLAGS" CXX="$CXX $COMPILER_FLAGS" } $CONFIGURE_FLAGS
17-
- ./configure
39+
# We don't perfectly track freebsd stdlib.h definitions. This is fine when
40+
# we count as a system header, but breaks otherwise, like during these
41+
# tests.
42+
- ./configure --with-jemalloc-prefix=ci_ ${DEBUG_CONFIG} ${PROF_CONFIG} ${UNCOMMON_CONFIG}
1843
- export JFLAG=`sysctl -n kern.smp.cpus`
1944
- gmake -j${JFLAG}
2045
- gmake -j${JFLAG} tests

.clang-format

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# jemalloc targets clang-format version 8. We include every option it supports
2+
# here, but comment out the ones that aren't relevant for us.
3+
---
4+
# AccessModifierOffset: -2
5+
AlignAfterOpenBracket: DontAlign
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Right
9+
AlignOperands: false
10+
AlignTrailingComments: false
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: Empty
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterReturnType: AllDefinitions
18+
AlwaysBreakBeforeMultilineStrings: true
19+
# AlwaysBreakTemplateDeclarations: Yes
20+
BinPackArguments: true
21+
BinPackParameters: true
22+
BraceWrapping:
23+
AfterClass: false
24+
AfterControlStatement: false
25+
AfterEnum: false
26+
AfterFunction: false
27+
AfterNamespace: false
28+
AfterObjCDeclaration: false
29+
AfterStruct: false
30+
AfterUnion: false
31+
BeforeCatch: false
32+
BeforeElse: false
33+
IndentBraces: false
34+
# BreakAfterJavaFieldAnnotations: true
35+
BreakBeforeBinaryOperators: NonAssignment
36+
BreakBeforeBraces: Attach
37+
BreakBeforeTernaryOperators: true
38+
# BreakConstructorInitializers: BeforeColon
39+
# BreakInheritanceList: BeforeColon
40+
BreakStringLiterals: false
41+
ColumnLimit: 80
42+
# CommentPragmas: ''
43+
# CompactNamespaces: true
44+
# ConstructorInitializerAllOnOneLineOrOnePerLine: true
45+
# ConstructorInitializerIndentWidth: 4
46+
ContinuationIndentWidth: 2
47+
Cpp11BracedListStyle: true
48+
DerivePointerAlignment: false
49+
DisableFormat: false
50+
ExperimentalAutoDetectBinPacking: false
51+
FixNamespaceComments: true
52+
ForEachMacros: [ ql_foreach, qr_foreach, ]
53+
# IncludeBlocks: Preserve
54+
# IncludeCategories:
55+
# - Regex: '^<.*\.h(pp)?>'
56+
# Priority: 1
57+
# IncludeIsMainRegex: ''
58+
IndentCaseLabels: false
59+
IndentPPDirectives: AfterHash
60+
IndentWidth: 4
61+
IndentWrappedFunctionNames: false
62+
# JavaImportGroups: []
63+
# JavaScriptQuotes: Leave
64+
# JavaScriptWrapImports: True
65+
KeepEmptyLinesAtTheStartOfBlocks: false
66+
Language: Cpp
67+
MacroBlockBegin: ''
68+
MacroBlockEnd: ''
69+
MaxEmptyLinesToKeep: 1
70+
# NamespaceIndentation: None
71+
# ObjCBinPackProtocolList: Auto
72+
# ObjCBlockIndentWidth: 2
73+
# ObjCSpaceAfterProperty: false
74+
# ObjCSpaceBeforeProtocolList: false
75+
76+
PenaltyBreakAssignment: 2
77+
PenaltyBreakBeforeFirstCallParameter: 1
78+
PenaltyBreakComment: 300
79+
PenaltyBreakFirstLessLess: 120
80+
PenaltyBreakString: 1000
81+
# PenaltyBreakTemplateDeclaration: 10
82+
PenaltyExcessCharacter: 1000000
83+
PenaltyReturnTypeOnItsOwnLine: 60
84+
PointerAlignment: Right
85+
# RawStringFormats:
86+
# - Language: TextProto
87+
# Delimiters:
88+
# - 'pb'
89+
# - 'proto'
90+
# EnclosingFunctions:
91+
# - 'PARSE_TEXT_PROTO'
92+
# BasedOnStyle: google
93+
# - Language: Cpp
94+
# Delimiters:
95+
# - 'cc'
96+
# - 'cpp'
97+
# BasedOnStyle: llvm
98+
# CanonicalDelimiter: 'cc'
99+
ReflowComments: true
100+
SortIncludes: false
101+
SpaceAfterCStyleCast: false
102+
# SpaceAfterTemplateKeyword: true
103+
SpaceBeforeAssignmentOperators: true
104+
# SpaceBeforeCpp11BracedList: false
105+
# SpaceBeforeCtorInitializerColon: true
106+
# SpaceBeforeInheritanceColon: true
107+
SpaceBeforeParens: ControlStatements
108+
# SpaceBeforeRangeBasedForLoopColon: true
109+
SpaceInEmptyParentheses: false
110+
SpacesBeforeTrailingComments: 2
111+
SpacesInAngles: false
112+
SpacesInCStyleCastParentheses: false
113+
# SpacesInContainerLiterals: false
114+
SpacesInParentheses: false
115+
SpacesInSquareBrackets: false
116+
# Standard: Cpp11
117+
# This is nominally supported in clang-format version 8, but not in the build
118+
# used by some of the core jemalloc developers.
119+
# StatementMacros: []
120+
TabWidth: 8
121+
UseTab: Never
122+
...

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
/doc/jemalloc.html
1414
/doc/jemalloc.3
1515

16+
/doc_internal/PROFILING_INTERNALS.pdf
17+
1618
/jemalloc.pc
1719

1820
/lib/
@@ -50,6 +52,7 @@ test/include/test/jemalloc_test.h
5052
test/include/test/jemalloc_test_defs.h
5153

5254
/test/integration/[A-Za-z]*
55+
!/test/integration/cpp/
5356
!/test/integration/[A-Za-z]*.*
5457
/test/integration/*.[od]
5558
/test/integration/*.out
@@ -71,6 +74,11 @@ test/include/test/jemalloc_test_defs.h
7174
/test/unit/*.[od]
7275
/test/unit/*.out
7376

77+
/test/analyze/[A-Za-z]*
78+
!/test/analyze/[A-Za-z]*.*
79+
/test/analyze/*.[od]
80+
/test/analyze/*.out
81+
7482
/VERSION
7583

7684
*.pdb

0 commit comments

Comments
 (0)