was_extended = H5MF_try_extend(f, H5FD_MEM_GHEAP, H5HG_ADDR(f->shared->cwfs[cwfsno]), (hsize_t)H5HG_SIZE(f->shared->cwfs[cwfsno]), (hsize_t)new_need);
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * Programmer:  Quincey Koziol <koziol@hdfgroup.org>
 *              Tuesday, July 19, 2011
 *
 * Purpose: Each file has a small cache of global heap collections called
 *      the CWFS list and recently accessed collections with free
 *      space appear on this list.  As collections are accessed the
 *      collection is moved toward the front of the list.  New
 *      collections are added to the front of the list while old
 *      collections are added to the end of the list.
 *
 *      The collection model reduces the overhead which would be
 *      incurred if the global heap were a single object, and the
 *      CWFS list allows the library to cheaply choose a collection
 *      for a new object based on object size, amount of free space
 *      in the collection, and temporal locality.
 */
/****************/
/* Module Setup */
/****************/
#include "H5Fmodule.h"          /* This source code file is part of the H5F module */
/***********/
/* Headers */
/***********/
#include "H5private.h"      /* Generic Functions            */
#include "H5Eprivate.h"     /* Error handling           */
#include "H5Fpkg.h"     /* File access              */
#include "H5HGprivate.h"    /* Global heaps             */
#include "H5MFprivate.h"    /* File memory management       */
#include "H5MMprivate.h"    /* Memory management            */
/****************/
/* Local Macros */