Lines Matching refs:app
23 void *MemoryManager::nanoappAlloc(Nanoapp *app, uint32_t bytes) { in nanoappAlloc() argument
29 app->getInstanceId()); in nanoappAlloc()
34 app->getInstanceId()); in nanoappAlloc()
37 static_cast<AllocHeader *>(doAlloc(app, sizeof(AllocHeader) + bytes)); in nanoappAlloc()
40 app->setTotalAllocatedBytes(app->getTotalAllocatedBytes() + bytes); in nanoappAlloc()
47 header->data.instanceId = app->getInstanceId(); in nanoappAlloc()
55 void MemoryManager::nanoappFree(Nanoapp *app, void *ptr) { in nanoappFree() argument
63 if (app->getInstanceId() != header->data.instanceId) { in nanoappFree()
65 app->getInstanceId(), header->data.instanceId); in nanoappFree()
68 size_t nanoAppTotalAllocatedBytes = app->getTotalAllocatedBytes(); in nanoappFree()
70 app->setTotalAllocatedBytes(nanoAppTotalAllocatedBytes - in nanoappFree()
73 app->setTotalAllocatedBytes(0); in nanoappFree()
85 doFree(app, header); in nanoappFree()