GCSIM
Classes | Variables
heap-manager.hpp File Reference
#include <cstdint>
#include <atomic>
#include <memory>
#include <mutex>
#include <chrono>
#include <stop_token>
#include <thread>
#include "../heap/heap.hpp"
#include "../segment-free-memory-table/segment-free-memory-table.hpp"
#include "../root-set-table/root-set-table.hpp"
#include "../garbage-collector/gc.hpp"

Classes

class  heap_manager
 manages the memory on the heap. More...
 

Variables

constexpr uint32_t SMALL_OBJECT_THRESHOLD = 256
 maximum small object size in bytes (up to 256B).
 
constexpr uint32_t MEDIUM_OBJECT_THRESHOLD = 2 * 1024
 maximum medium object size in bytes (up to 2KB).
 
constexpr uint32_t LARGE_OBJECT_THRESHOLD = 256 * 1024
 maximum large object size in bytes (up to 256KB).
 

Variable Documentation

◆ LARGE_OBJECT_THRESHOLD

constexpr uint32_t LARGE_OBJECT_THRESHOLD = 256 * 1024
constexpr

maximum large object size in bytes (up to 256KB).

◆ MEDIUM_OBJECT_THRESHOLD

constexpr uint32_t MEDIUM_OBJECT_THRESHOLD = 2 * 1024
constexpr

maximum medium object size in bytes (up to 2KB).

◆ SMALL_OBJECT_THRESHOLD

constexpr uint32_t SMALL_OBJECT_THRESHOLD = 256
constexpr

maximum small object size in bytes (up to 256B).