RFR: 8153658: Redundant memory copy in LogStreamNoResourceMark
Stefan Karlsson
stefan.karlsson at oracle.com
Thu Apr 7 17:57:15 UTC 2016
Thanks, Jon.
StefanK
On 2016-04-07 19:41, Jon Masamitsu wrote:
> Stefan,
>
> Change looks good.
>
> Jon
>
> On 04/06/2016 10:30 AM, Stefan Karlsson wrote:
>> Hi all,
>>
>> Please review this patch to remove a redundant memory copy in the UL
>> log stream classes.
>>
>> http://cr.openjdk.java.net/~stefank/8153658/webrev.01
>> https://bugs.openjdk.java.net/browse/JDK-8153658
>>
>> LogStreamNoResourceMark copies the resource allocated string buffer
>> into a new resource allocated string buffer before copying the data
>> to UL.
>>
>> Moreover, this also causes problem when implementing a log stream
>> class using CHeap memory instead of Resource memory. Even though the
>> first allocation is done from CHeap the second copy comes from
>> Resource memory.
>>
>> Thanks,
>> StefanK
>
More information about the hotspot-dev
mailing list