Initial commit

This commit is contained in:
daoge_cmd
2026-03-01 12:16:08 +08:00
parent def8cb4153
commit b691c43c44
19437 changed files with 4363922 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#pragma once
#include "ArrayWithLength.h"
class IntCache
{
private:
class ThreadStorage
{
public:
int maxSize;
vector<intArray> tcache;
vector<intArray> tallocated;
vector<intArray> cache;
vector<intArray> allocated;
vector<intArray> toosmall; // 4J added
~ThreadStorage();
};
static DWORD tlsIdx;
static const int TINY_CUTOFF = 256;
public:
static intArray allocate(int size);
static void releaseAll();
static void CreateNewThreadStorage();
static void ReleaseThreadStorage();
static void Reset(); // 4J added
};