[jira] [Created] (ARROW-5057) Java: allocate new buffer code doesn't release extra allocated buffer properly

2019-03-28 Thread Hitesh Khamesra (JIRA)
Hitesh Khamesra created ARROW-5057: -- Summary: Java: allocate new buffer code doesn't release extra allocated buffer properly Key: ARROW-5057 URL: https://issues.apache.org/jira/browse/ARROW-5057

Java allocate buffer code

2019-03-27 Thread Hitesh Khamesra
Hi All: I was looking following code to release extra allocated buffer. It seems it should be considering actualCount as "valueCount*typeWidth". Then it should calculate extra buffer and release it. Right now, it calculates based on actually allocated size and not justifying the intend. Any