Request for Review: 7007769: VM crashes with SIGBUS writing PerfData if tmp space is full

Bob Vandette bob.vandette at
Mon Dec 20 11:49:16 PST 2010

New changeset for review.

If there is very little /tmp space, the VM will be able to successfully mmap the 
performance data area in /tmp but when the VM attempts to access this memory 
region, it will crash with a SIGBUS if there is insufficient disk space in /tmp.

Solaris will fail the ftruncate call we use to extend the newly created file but Linux does not.
To work around this problem, I write a single byte to each page of the file about to be mmap'd
top reserve the space on the disk.

Bob Vandette

More information about the hotspot-runtime-dev mailing list