HHoflittlefish777 commented on code in PR #21483:
URL: https://github.com/apache/doris/pull/21483#discussion_r1251751598
##########
be/src/vec/common/allocator.h:
##########
@@ -138,7 +145,7 @@ class Allocator {
}
/// Free memory range.
- void free(void* buf, size_t size = -1) {
Review Comment:
@yiguolei How can I use it like static void `static void deleter(void* data)
{ Allocator<false, false, false>::free(data); }`,In the scenario of RPC, in
order to achieve zero copy, I need to hand over the data to the append method
for management, and need to define a collector that is static. If I don't do
this, should I inherit the allocator?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]