RFR (S): 7129724: Fix location of core file in dump message on macosx

Dmitry Samersoff Dmitry.Samersoff at oracle.com
Tue Jun 26 01:30:29 PDT 2012


Mikael,

Stepping aside MAC OS related changes, this code doesn't
respect OS settings of coredump pattern and location.

So is it better to create os::coredump_pattern() function
and change it to handle /proc/sys/kernel/core_pattern
under Linux as well as MAC OS specific things?

-Dmitry


On 2012-06-26 02:22, Mikael Vidstedt wrote:
> 
> If HotSpot crashes the dump message prints the default location of the
> generated core file. On other "posix" like OSes the path is normally
> <cwd>/core or core.<pid>, but on macosx the cores always end up in
> /cores/core.<pid>. This change aims to reflect that. Verified manually
> on Linux and macosx. Passes JPRT.
> 
> Webrev: http://cr.openjdk.java.net/~mikael/7129724/webrev.00
> 
> Cheers,
> Mikael
> 


-- 
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...




More information about the hotspot-runtime-dev mailing list