[OpenJDK 2D-Dev]  RFR: JDK-8151110, , libfontmanager should free memory with delete if it was allocated with new
Sergey.Bylokhov at oracle.com
Wed Mar 16 20:15:56 UTC 2016
On 16.03.16 21:46, Philip Race wrote:
> On 3/15/16, 11:33 PM, prasanta sadhukhan wrote:
>> Hi Phil,
>> Please review a small fix for
>> bug: https://bugs.openjdk.java.net/browse/JDK-8151110
>> webrev: http://cr.openjdk.java.net/~psadhukhan/8151110/webrev.00/
>> where the issue was found that the allocation of memory was done
>> through new operator but free was done through free().
>> Since they operate on different heaps and can pose problem if the code
>> was to be run on new machine/compiler it's better to allocate through
>> calloc for free() to delete memory correctly.
>> noreg-cleanup is added for this bug.
Best regards, Sergey.
More information about the 2d-dev