Fix C7 warm/TLS Release path and unify debug instrumentation
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
// Default: conservative profile (all classes TINY_FIRST).
|
||||
// This keeps Tiny in the fast path but always allows Pool fallback.
|
||||
@ -40,5 +41,16 @@ void tiny_route_init(void)
|
||||
// - 全クラス TINY_FIRST(Tiny を使うが必ず Pool fallbackあり)
|
||||
memset(g_tiny_route, ROUTE_TINY_FIRST, sizeof(g_tiny_route));
|
||||
}
|
||||
}
|
||||
|
||||
#if HAKMEM_BUILD_RELEASE
|
||||
static int rel_logged = 0;
|
||||
if (!rel_logged) {
|
||||
const char* mode =
|
||||
(g_tiny_route[7] == ROUTE_TINY_ONLY) ? "TINY_ONLY" :
|
||||
(g_tiny_route[7] == ROUTE_TINY_FIRST) ? "TINY_FIRST" :
|
||||
(g_tiny_route[7] == ROUTE_POOL_ONLY) ? "POOL_ONLY" : "UNKNOWN";
|
||||
fprintf(stderr, "[REL_C7_ROUTE] profile=%s route=%s\n", profile, mode);
|
||||
rel_logged = 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user