MemoryManager::GCBlocker gcBlocker(memoryManager);
stringPool.reset(new StringPool);
- memoryManager->setStringPool(stringPool.data());
memoryManager->setExecutionEngine(this);
rootContext = newContext();
static const std::size_t CHUNK_SIZE = 65536;
-class StringPool;
struct MemoryManager::Data
{
bool enableGC;
bool scribble;
bool aggressiveGC;
ExecutionEngine *engine;
- StringPool *stringPool;
enum { MaxItemSize = 128 };
Managed *smallItems[MaxItemSize/16];
: enableGC(enableGC)
, gcBlocked(false)
, engine(0)
- , stringPool(0)
{
memset(smallItems, 0, sizeof(smallItems));
scribble = qgetenv("MM_NO_SCRIBBLE").isEmpty();
m_d->engine = engine;
}
-void MemoryManager::setStringPool(StringPool *stringPool)
-{
- m_d->stringPool = stringPool;
-}
-
void MemoryManager::dumpStats() const
{
std::cerr << "=================" << std::endl;