Initial import of YTAlloc
@@ -869,6 +869,9 @@ module _LINK_UNIT: _BASE_UNIT {
"LOCKLESS" ? {
PEERDIR+=library/malloc/lockless
}
+ "YT" ? {
+ PEERDIR+=library/ytalloc/impl
+ }
}
}
@@ -2869,10 +2872,11 @@ macro ADD_PERL_MODULE(Dir, Module) {
### Set memory allocator implementation for the PROGRAM()/DLL() module.
### This may only be specified for programs and dlls, use in other modules leads to configuration errors.
###
-### Available allocators are: "LF", "LF_YT", "LF_DBG", "J", "B", "BS", "BM", "C", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE"
+### Available allocators are: "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BS", "BM", "C", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE".
### - LF - lfalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/lfalloc)
### - LF_YT - Allocator selection for YT (https://a.yandex-team.ru/arc/trunk/arcadia/library/lfalloc/yt/ya.make)
### - LF_DBG - Debug allocator selection (https://a.yandex-team.ru/arc/trunk/arcadia/library/lfalloc/dbg/ya.make)
+### - YT - The YTAlloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/ytalloc/impl/ya.make)
### - J - The JEMalloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/jemalloc)
### - B - The balloc allocator named Pyotr Popov and Anton Samokhvalov
### - Discussion: https://ironpeter.at.yandex-team.ru/replies.xml?item_no=126
@@ -2889,7 +2893,7 @@ macro ADD_PERL_MODULE(Dir, Module) {
macro ALLOCATOR(Alloc) {
SET(ALLOCATOR $Alloc)
- when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "J", "B", "BS", "BM", "C", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE" ]) {
+ when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BS", "BM", "C", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE" ]) {
}
otherwise {
PEERDIR+=___configure_error___unknown_allocator_type___$ALLOCATOR
