GoogleCloudPlatform / iot-device-sdk-embedded-c

Cloud IoT Device SDK for Connectivity to IoT Core.
Other
247 stars 83 forks source link

Memory Limiter: IOTC memory leak or fail assertion. #78

Open kwokhei opened 5 years ago

kwokhei commented 5 years ago

Once the memory limiter feature is turned on, iot-device-sdk will keep track of how much memory it can and has allocated. If a message is sent to the iotc and during the process of constructing the message, the iotc experiences memory exhaustion, depends on the precise step the iotc runs out of memory, iotc could either recovers and frees all memory or memory leak or fail assertion.