Skip to content

Commit f3a157f

Browse files
committed
Fix heap size for Arc
1 parent 438bc47 commit f3a157f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datafusion/common/src/heap_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ impl<K: DFHeapSize, V: DFHeapSize> DFHeapSize for HashMap<K, V> {
230230
impl<T: DFHeapSize> DFHeapSize for Arc<T> {
231231
fn heap_size(&self) -> usize {
232232
// Arc stores weak and strong counts on the heap alongside an instance of T
233-
2 * size_of::<usize>() + size_of::<T>() + self.as_ref().heap_size()
233+
2 * size_of::<usize>() + self.as_ref().heap_size()
234234
}
235235
}
236236

0 commit comments

Comments
 (0)