Review request: 6729929 I18N - Taking Heap Dump failed if project path contains multibyte characters

Peter Allwin peter.allwin at
Thu Apr 4 07:12:27 PDT 2013

Hi, I'm still looking for reviewers for this change.



On 4/3/2013 6:16 PM, Peter Allwin wrote:
> Webrev: 
> <>
> Bug:
> Summary: When dumpHeap in the HotSpotDiagnostic JMX MBean is called, 
> the filename parameter must be converted from jstring to char* to be 
> used in open(). This was done using UTF-8 encoding which is incorrect 
> as open() expects a platform dependent encoding according to the 
> system locale. Fix is to use 
> java_lang_String::as_platform_dependent_str to do the conversion.
> Thanks to Markus for advising and hosting the webrev!
> Regards,
> /peter

More information about the hotspot-dev mailing list