Files
hakmem/core/box/smallobject_cold_iface_v4.h
2025-12-10 17:58:42 +09:00

22 lines
834 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// smallobject_cold_iface_v4.h - SmallObject HotHeap v4 Cold Interface (境界 API のみ)
//
// 役割:
// - HotBox_v4 と Superslab/Warm/Remote を繋ぐ関数ポインタの箱を定義する。
// - 実装は後続フェーズで追加し、いまは型と宣言だけを置く。
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "smallobject_hotbox_v4_box.h"
typedef struct SmallColdIfaceV4 {
small_page_v4* (*refill_page)(small_heap_ctx_v4*, uint32_t class_idx);
void (*retire_page)(small_heap_ctx_v4*, uint32_t class_idx, small_page_v4* page);
bool (*remote_push)(small_page_v4* page, void* ptr, uint32_t self_tid);
void (*remote_drain)(small_heap_ctx_v4*);
} SmallColdIfaceV4;
// Cold iface accessor実装は後続フェーズ
const SmallColdIfaceV4* small_cold_iface_v4_get(void);