Logo
Explore Help
Register Sign In
tomoaki/hakmem
1
0
Fork 0
You've already forked hakmem
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
f28cafbad3cc166fe5909e542fdaadb6edaa5c68
hakmem/check_addr.c

17 lines
354 B
C
Raw Normal View History

Fix include order in hakmem.c - move hak_kpi_util.inc.h before hak_core_init.inc.h Problem: hak_core_init.inc.h references KPI measurement variables (g_latency_histogram, g_latency_samples, g_baseline_soft_pf, etc.) but hakmem.c was including hak_kpi_util.inc.h AFTER hak_core_init.inc.h, causing undefined reference errors. Solution: Reorder includes so hak_kpi_util.inc.h (definition) comes before hak_core_init.inc.h (usage). Build result: ✅ Success (libhakmem.so 547KB, 0 errors) Minor changes: - Added extern __thread declarations for TLS SLL debug variables - Added signal handler logging for debug_dump_last_push - Improved hakmem_tiny.c structure for Phase 2 preparation 🤖 Generated with Claude Code + Task Agent Co-Authored-By: Gemini <gemini@example.com> Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 13:28:44 +09:00
#include <stdio.h>
#include <stdlib.h>
int main() {
void* p = malloc(10);
printf("Malloc ptr: %p\n", p);
unsigned long long addr = (unsigned long long)p;
if (addr > 0x00007fffffffffffULL) {
printf("Address > 48-bit detected!\n");
} else {
printf("Address within 48-bit range.\n");
}
free(p);
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 25ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API