Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8246406: ZGC: Generate crash reports in debug builds for a few import…
…ant errors paths

Reviewed-by: pliden, eosterlund
  • Loading branch information
stefank committed Jun 5, 2020
1 parent 1c27ce3 commit 8384f7ff28c99215fa81cd47184e97c23e613fa1
@@ -82,7 +82,7 @@ ZPhysicalMemoryBacking::ZPhysicalMemoryBacking() :
_base = (uintptr_t)os::reserve_memory(MaxHeapSize);
if (_base == 0) {
// Failed
log_error_p(gc)("Failed to reserve address space for backing memory");
log_error_pd(gc)("Failed to reserve address space for backing memory");
return;
}

@@ -237,7 +237,7 @@ int ZPhysicalMemoryBacking::create_file_fd(const char* name) const {
struct stat stat_buf;
if (fstat(fd_anon, &stat_buf) == -1) {
ZErrno err;
log_error_p(gc)("Failed to determine inode number for anonymous file (%s)", err.to_string());
log_error_pd(gc)("Failed to determine inode number for anonymous file (%s)", err.to_string());
return -1;
}

@@ -45,7 +45,7 @@ ZMarkStackSpace::ZMarkStackSpace() :
const size_t alignment = (size_t)os::vm_allocation_granularity();
const uintptr_t addr = (uintptr_t)os::reserve_memory(size, NULL, alignment, mtGC);
if (addr == 0) {
log_error_p(gc, marking)("Failed to reserve address space for mark stacks");
log_error_pd(gc, marking)("Failed to reserve address space for mark stacks");
return;
}

@@ -43,7 +43,7 @@ ZVirtualMemoryManager::ZVirtualMemoryManager(size_t max_capacity) :

// Reserve address space
if (!reserve(max_capacity)) {
log_error_p(gc)("Failed to reserve enough address space for Java heap");
log_error_pd(gc)("Failed to reserve enough address space for Java heap");
return;
}

0 comments on commit 8384f7f

Please sign in to comment.