space = GET_MEM(bytes);
GC_add_to_our_memory((ptr_t)space, bytes);
if (space == 0) {
- GC_COND_LOG_PRINTF("Failed to expand heap by %lu bytes\n",
- (unsigned long)bytes);
+ WARN("Failed to expand heap by %" WARN_PRIdPTR " bytes\n", bytes);
return(FALSE);
}
GC_COND_LOG_PRINTF(
result = (ptr_t)GET_MEM(bytes_to_get);
GC_add_to_our_memory(result, bytes_to_get);
if (result == 0) {
- GC_COND_LOG_PRINTF("Out of memory - trying to allocate less\n");
+ WARN("Out of memory - trying to allocate less\n", 0);
scratch_free_ptr -= bytes;
bytes_to_get = bytes;
# ifdef USE_MMAP
handle_ex:
/* Exception handler starts here for all cases. */
- GC_COND_LOG_PRINTF(
- "Caught ACCESS_VIOLATION in marker; memory mapping disappeared\n");
+ WARN("Caught ACCESS_VIOLATION in marker;"
+ " memory mapping disappeared\n", 0);
/* We have bad roots on the stack. Discard mark stack. */
/* Rescan from marked objects. Redetermine roots. */
GC_COND_LOG_PRINTF("Grew mark stack to %lu frames\n",
(unsigned long)GC_mark_stack_size);
} else {
- GC_COND_LOG_PRINTF("Failed to grow mark stack to %lu frames\n",
- (unsigned long)n);
+ WARN("Failed to grow mark stack to %" WARN_PRIdPTR " frames\n", n);
}
} else {
if (new_stack == 0) {