google::protobuf::message not getting deallocated

22 views
Skip to first unread message

Gaurav sahil

unread,
Mar 11, 2020, 6:21:46 AM3/11/20
to Protocol Buffers
Google Protocol Buffer Version - 3.5.x

Usage - Sharing the serialised data between different processes

Issue - A google::protobuf::message is serialsed with dynamic allocation using message::New() and after serialisation it is deleted using message::Clear(). This function is not reducing the memory usage of the process.

From the link "https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.common", its found that the memory allocated is taken as static data and it will be cleared using shutdownprotobuflibrary() while the process is getting terminated.But we have a requirement where in we cant terminate our process.

What is the alternative to this deletion?
Reply all
Reply to author
Forward
0 new messages