diff -r d7c4ba50b7d8 -r bf19378aed58 ucx/mempool.h
--- a/ucx/mempool.h Fri Nov 18 13:39:20 2016 +0100
+++ b/ucx/mempool.h Fri Nov 18 15:27:45 2016 +0100
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
- * Copyright 2015 Olaf Wintermann. All rights reserved.
+ * Copyright 2016 Olaf Wintermann. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -127,10 +127,8 @@
/**
* Reallocates pooled memory.
*
- * If the memory to be reallocated is not contained by the specified pool, this
- * function will possibly fail. In case the memory had to be moved to another
- * location, this function will print out a message to stderr
- * and exit the program with error code EXIT_FAILURE
.
+ * If the memory to be reallocated is not contained by the specified pool, the
+ * behavior is undefined.
*
* @param pool the memory pool
* @param ptr a pointer to the memory that shall be reallocated
@@ -146,10 +144,8 @@
* Before freeing the memory, the specified destructor function (if any)
* is called.
*
- * If you specify memory, that is not pooled by the specified memory pool, this
- * is considered as a severe error and an error message is written to
- * stderr
and the application is shut down with code
- * EXIT_FAILURE
.
+ * If you specify memory, that is not pooled by the specified memory pool, the
+ * behavior is undefined.
*
* @param pool the memory pool
* @param ptr a pointer to the memory that shall be freed
@@ -180,7 +176,7 @@
* pool is destroyed.
*
* The only requirement for the specified memory is, that it MUST be
- * pooled memory by an UcxMempool or an element-compatible mempool. The pointer
+ * pooled memory by a UcxMempool or an element-compatible mempool. The pointer
* to the destructor function is saved in a reserved area before the actual
* memory.
*