Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
folly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
folly
Commits
5fabcaa4
Commit
5fabcaa4
authored
Feb 13, 2013
by
Tudor Bosman
Committed by
Jordan DeLong
Mar 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define ALLOCM_LG_ALIGN
Test Plan: No Reviewed By: philipp@fb.com FB internal diff: D707792
parent
267e38a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
folly/Malloc.h
folly/Malloc.h
+9
-5
No files found.
folly/Malloc.h
View file @
5fabcaa4
/*
* Copyright 201
2
Facebook, Inc.
* Copyright 201
3
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -73,18 +73,22 @@ extern "C" int rallocm(void**, size_t*, size_t, size_t, int)
__attribute__
((
weak
));
/**
* Define
the ALLOCM_SUCCESS, ALLOCM_ZERO, and ALLOCM_NO_MOVE constants
*
normally provided by jemalloc. We define them so that we don't have to
*
include jemalloc.h, in case the program is
built without jemalloc support.
* Define
various ALLOCM_* macros normally provided by jemalloc. We define
*
them so that we don't have to include jemalloc.h, in case the program is
* built without jemalloc support.
*/
#ifndef ALLOCM_SUCCESS
#define ALLOCM_SUCCESS 0
#define ALLOCM_ERR_OOM 1
#define ALLOCM_ERR_NOT_MOVED 2
#define ALLOCM_ZERO 64
#define ALLOCM_NO_MOVE 128
#endif
#define ALLOCM_LG_ALIGN(la) (la)
#endif
/* !ALLOCM_SUCCESS */
#ifdef _LIBSTDCXX_FBSTRING
namespace
std
_GLIBCXX_VISIBILITY
(
default
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment