Commit 03343ccb authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot 0

s/MAX_STATIC_CONSTRUCTOR_PRIORITY/FOLLY_STATIC_CTOR_PRIORITY_MAX/g

Summary:[Folly] `s/MAX_STATIC_CONSTRUCTOR_PRIORITY/FOLLY_STATIC_CTOR_PRIORITY_MAX/g`.

Namespace it with a `FOLLY_` prefix - when Folly introduces its own symbols, it is best when they are namespaced.

And stick `_MAX` at the end. Reads a bit more hierarchically to me that way.

Reviewed By: andriigrynenko

Differential Revision: D3095964

fb-gh-sync-id: 4ac8c00c03c8bd146fad9be96ce3849830504d96
fbshipit-source-id: 4ac8c00c03c8bd146fad9be96ce3849830504d96
parent efdf2270
...@@ -370,12 +370,12 @@ inline size_t malloc_usable_size(void* ptr) { ...@@ -370,12 +370,12 @@ inline size_t malloc_usable_size(void* ptr) {
#endif #endif
#if defined(__APPLE__) || defined(_MSC_VER) #if defined(__APPLE__) || defined(_MSC_VER)
#define MAX_STATIC_CONSTRUCTOR_PRIORITY #define FOLLY_STATIC_CTOR_PRIORITY_MAX
#else #else
// 101 is the highest priority allowed by the init_priority attribute. // 101 is the highest priority allowed by the init_priority attribute.
// This priority is already used by JEMalloc and other memory allocators so // This priority is already used by JEMalloc and other memory allocators so
// we will take the next one. // we will take the next one.
#define MAX_STATIC_CONSTRUCTOR_PRIORITY __attribute__ ((__init_priority__(102))) #define FOLLY_STATIC_CTOR_PRIORITY_MAX __attribute__((__init_priority__(102)))
#endif #endif
#endif // FOLLY_PORTABILITY_H_ #endif // FOLLY_PORTABILITY_H_
...@@ -223,6 +223,6 @@ ElementWrapper& StaticMetaBase::get(EntryID* ent) { ...@@ -223,6 +223,6 @@ ElementWrapper& StaticMetaBase::get(EntryID* ent) {
return threadEntry->elements[id]; return threadEntry->elements[id];
} }
MAX_STATIC_CONSTRUCTOR_PRIORITY FOLLY_STATIC_CTOR_PRIORITY_MAX
PthreadKeyUnregister PthreadKeyUnregister::instance_; PthreadKeyUnregister PthreadKeyUnregister::instance_;
}} }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment