Skip to content

Commit 9814efb

Browse files
rmacnak-googlecommit-bot@chromium.org
authored andcommitted
[standalone] Update tcmalloc to 2.8.
Change-Id: I3563de74fe908ea0165a830a38d34818ecb4f9f8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171803 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
1 parent 1d05591 commit 9814efb

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ vars = {
6565
# Scripts that make 'git cl format' work.
6666
"clang_format_scripts_rev": "c09c8deeac31f05bd801995c475e7c8070f9ecda",
6767

68-
"gperftools_revision": "e9ab4c53041ac62feefbbb076d326e9a77dd1567",
68+
"gperftools_revision": "180bfa10d7cb38e8b3784d60943d50e8fcef0dcb",
6969

7070
# Revisions of /third_party/* dependencies.
7171
"args_tag": "1.6.0",

third_party/tcmalloc/include/config.h

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#define GPERFTOOLS_CONFIG_H_
77

88

9+
/* enable aggressive decommit by default */
10+
/* #undef ENABLE_AGGRESSIVE_DECOMMIT_BY_DEFAULT */
11+
912
/* Build new/delete operators for overaligned types */
1013
#define ENABLE_ALIGNED_NEW_DELETE 1
1114

@@ -18,6 +21,9 @@
1821
/* Build sized deletion operators */
1922
#define ENABLE_SIZED_DELETE 1
2023

24+
/* Define to 1 if you have the <asm/ptrace.h> header file. */
25+
/* #undef HAVE_ASM_PTRACE_H */
26+
2127
/* Define to 1 if compiler supports __builtin_stack_pointer */
2228
/* #undef HAVE_BUILTIN_STACK_POINTER */
2329

@@ -36,7 +42,7 @@
3642

3743
/* Define to 1 if you have the declaration of `cfree', and to 0 if you don't.
3844
*/
39-
#define HAVE_DECL_CFREE 1
45+
#define HAVE_DECL_CFREE 0
4046

4147
/* Define to 1 if you have the declaration of `memalign', and to 0 if you
4248
don't. */
@@ -87,9 +93,6 @@
8793
/* Define to 1 if you have the `geteuid' function. */
8894
#define HAVE_GETEUID 1
8995

90-
/* Define to 1 if you have the `getpagesize' function. */
91-
#define HAVE_GETPAGESIZE 1
92-
9396
/* Define to 1 if you have the <glob.h> header file. */
9497
#define HAVE_GLOB_H 1
9598

@@ -160,9 +163,6 @@
160163
/* Define to 1 if you have the <sys/cdefs.h> header file. */
161164
#define HAVE_SYS_CDEFS_H 1
162165

163-
/* Define to 1 if you have the <sys/param.h> header file. */
164-
#define HAVE_SYS_PARAM_H 1
165-
166166
/* Define to 1 if you have the <sys/prctl.h> header file. */
167167
#define HAVE_SYS_PRCTL_H 1
168168

@@ -239,7 +239,7 @@
239239
#define PACKAGE_NAME "gperftools"
240240

241241
/* Define to the full name and version of this package. */
242-
#define PACKAGE_STRING "gperftools 2.7"
242+
#define PACKAGE_STRING "gperftools 2.8"
243243

244244
/* Define to the one symbol short name of this package. */
245245
#define PACKAGE_TARNAME "gperftools"
@@ -248,7 +248,7 @@
248248
#define PACKAGE_URL ""
249249

250250
/* Define to the version of this package. */
251-
#define PACKAGE_VERSION "2.7"
251+
#define PACKAGE_VERSION "2.8"
252252

253253
/* How to access the PC from a struct ucontext */
254254
/* #undef PC_FROM_UCONTEXT */
@@ -285,17 +285,14 @@
285285
/* the namespace where STL code like vector<> is defined */
286286
#define STL_NAMESPACE std
287287

288-
/* Define 32K of internal pages size for tcmalloc */
289-
/* #undef TCMALLOC_32K_PAGES */
290-
291-
/* Define 64K of internal pages size for tcmalloc */
292-
/* #undef TCMALLOC_64K_PAGES */
293-
294288
/* Define 8 bytes of allocation alignment for tcmalloc */
295289
/* #undef TCMALLOC_ALIGN_8BYTES */
296290

291+
/* Define internal page size for tcmalloc as number of left bitshift */
292+
/* #undef TCMALLOC_PAGE_SIZE_SHIFT */
293+
297294
/* Version number of package */
298-
#define VERSION "2.7"
295+
#define VERSION "2.8"
299296

300297
/* C99 says: define this to get the PRI... macros from stdint.h */
301298
#ifndef __STDC_FORMAT_MACROS

third_party/tcmalloc/include/gperftools/tcmalloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343

4444
/* Define the version number so folks can check against it */
4545
#define TC_VERSION_MAJOR 2
46-
#define TC_VERSION_MINOR 7
46+
#define TC_VERSION_MINOR 8
4747
#define TC_VERSION_PATCH ""
48-
#define TC_VERSION_STRING "gperftools 2.7"
48+
#define TC_VERSION_STRING "gperftools 2.8"
4949

5050
/* For struct mallinfo, if it's defined. */
5151
#if 1

0 commit comments

Comments
 (0)