/[Apache-SVN]
ViewVC logotype

Revision 1724784


Jump to revision: Previous Next
Author: kotkov
Date: Fri Jan 15 12:11:43 2016 UTC (8 years, 2 months ago)
Changed paths: 2
Log Message:
Provide a way to distinguish the out-of-memory error from abort() on Windows.

There are multiple reasons why an abort() could be called in our code.  Make
crashing due to out-of-memory conditions use a specific exception code, so
that we would be able to distinguish it from, e.g., crashing due to a failed
SVN_ERR_ASSERT().

* subversion/libsvn_subr/pool.c
  (abort_on_pool_failure): Raise STATUS_NO_MEMORY on Windows.

* subversion/libsvn_subr/win32_crashrpt.c
  (exception_string): Unroll the part of the stringifying macro.  Handle
   STATUS_NO_MEMORY in this helper for our unhandled exception filter.


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_subr/pool.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_subr/win32_crashrpt.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26