/** * Initialize and preallocate a minimum amount of nodes. * * @param arena optional */ void initialize(Object arena, int min) throws DatabaseException, OutOfMemoryError { while (--min >= 0) { acquireExclusive(); if (mSize >= mMaxSize) { releaseExclusive(); break; } doAllocLatchedNode(arena, 0).releaseExclusive(); } }
/** * Initialize and preallocate a minimum amount of nodes. * * @param arena optional */ void initialize(Object arena, int min) throws DatabaseException, OutOfMemoryError { while (--min >= 0) { acquireExclusive(); if (mSize >= mMaxSize) { releaseExclusive(); break; } doAllocLatchedNode(arena, 0).releaseExclusive(); } }
return doAllocLatchedNode(null, mode); } else if (node == null) { break; return doAllocLatchedNode(null, mode); } else if ((mode & MODE_NO_EVICT) != 0) { node.releaseExclusive();
return doAllocLatchedNode(null, mode); } else if (node == null) { break; return doAllocLatchedNode(null, mode); } else if ((mode & MODE_NO_EVICT) != 0) { node.releaseExclusive();