comparison src/os/solaris/vm/os_solaris.cpp @ 19813:a67fe68c25c5

[SPARC] Print specific error code when mmap fails (even when PrintWarnings is set to false)
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Thu, 12 Mar 2015 15:58:28 +0100
parents 52b4284cb496
children 8e316bc46018
comparison
equal deleted inserted replaced
19812:3a5847e64b30 19813:a67fe68c25c5
2672 2672
2673 int err = errno; // save errno from mmap() call in mmap_chunk() 2673 int err = errno; // save errno from mmap() call in mmap_chunk()
2674 2674
2675 if (!recoverable_mmap_error(err)) { 2675 if (!recoverable_mmap_error(err)) {
2676 warn_fail_commit_memory(addr, bytes, exec, err); 2676 warn_fail_commit_memory(addr, bytes, exec, err);
2677 // Introduced temporarily to debug the memory allocation issues on Solaris
2678 tty->print_cr("GRAAL_DEBUG: unrecoverable error during mmap got errno %d", err);
2677 vm_exit_out_of_memory(bytes, OOM_MMAP_ERROR, "committing reserved memory."); 2679 vm_exit_out_of_memory(bytes, OOM_MMAP_ERROR, "committing reserved memory.");
2678 } 2680 }
2679 2681
2680 return err; 2682 return err;
2681 } 2683 }