yiguolei commented on code in PR #61173:
URL: https://github.com/apache/doris/pull/61173#discussion_r2921798708
##########
be/src/vec/common/pod_array.h:
##########
@@ -352,21 +260,14 @@ class PODArrayBase : private boost::noncopyable,
resize_assume_reserved(n);
}
- void resize_assume_reserved(const size_t n) {
- c_end = c_start + byte_size(n);
- reset_resident_memory();
- }
+ void resize_assume_reserved(const size_t n) { c_end = c_start +
byte_size(n); }
const char* raw_data() const { return c_start; }
template <typename... TAllocatorParams>
void push_back_raw(const char* ptr, TAllocatorParams&&...
allocator_params) {
- if (UNLIKELY(c_end + ELEMENT_SIZE > c_res_mem)) { // c_res_mem <=
c_end_of_storage
Review Comment:
c_end + ELEMENT_SIZE > c_end_of_storage ??
--
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]