RFR(XS): 8180473: Use proper deallocation for FileBuff::_bigbuf
zoltan.majo at oracle.com
Thu May 18 15:18:28 UTC 2017
Thank you, Vladimir, for the review!
On 05/18/2017 01:46 AM, Vladimir Kozlov wrote:
> On 5/17/17 3:52 AM, Zoltán Majó wrote:
>> please review the following fix for 8180473.
>> It is a good coding practice to properly deallocate dynamically
>> allocated resources. In particular, dynamically allocated memory for
>> arrays using the array-specific new operator is supposed to be
>> deallocated using the array-specific delete operator. The
>> deallocation of FileBuff::_bigbuf does not follow this recommendation
>> and should therefore be changed. Tested with JPRT.
>> Thank you!
>> Best regards,
More information about the hotspot-compiler-dev