History log of /petsc/src/sys/error/err.h (Results 1 – 4 of 4)
Revision Date Author Comments
# 9dd11ecf 25-Aug-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jacobf/2023-08-17/header-guard-check' into 'main'

Check header guards

See merge request petsc/petsc!6822


# a4963045 18-Aug-2023 Jacob Faibussowitsch <jacob.fai@gmail.com>

Convert all header guards to pragma once


# 9c861a52 07-Aug-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'tisaac/feature-malloc-dump-finalize' into 'main'

Sys: Introduce -on_error_malloc_dump and PETSC_ERR_MEM_LEAK

See merge request petsc/petsc!6745


# 9beb8f72 07-Aug-2023 Toby Isaac <toby.isaac@gmail.com>

Sys: Introduce -on_error_malloc_dump and PETSC_ERR_MEM_LEAK

To avoid a malloc dump that swamps the error output of another error,
this makes calling `PetscMallocDump()` in the error handlers opt-in,

Sys: Introduce -on_error_malloc_dump and PETSC_ERR_MEM_LEAK

To avoid a malloc dump that swamps the error output of another error,
this makes calling `PetscMallocDump()` in the error handlers opt-in,
with a different flag (`-on_error_malloc_dump`) from the flag for
calling `PetscMallocDump()` in `PetscFinalize()` (just `-malloc_dump`).

The addition of `PETSC_ERR_MEM_LEAK` allows for better error messages:
`~PoolAllocator()` can detect a memory leak even if the system
is not out of memory, so the error message will not say that for
`PETSC_ERR_MEM_LEAK`.

show more ...