Examples of free()


Examples of org.apache.excalibur.store.Store.free()

     */
    private int reduceStoreBy(int remove) {
        Store store = (Store) storelist.get(index);
        int sizeBefore = countSize(store);
        for (int i = 0; i < sizeBefore & remove > 0; i++, remove--) {
            store.free();
        }
        int sizeAfter = countSize(store);
        debug("store index=" + index + ", size before=" + sizeBefore + ",  size after=" + sizeAfter + ", removed=" + (sizeBefore - sizeAfter));
        return remove;
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.ShortCircuitShm.free()

        SharedFileDescriptorFactory.create("shm_",
            new String[] { path.getAbsolutePath() } );
    FileInputStream stream =
        factory.createDescriptor("testStartupShutdown", 4096);
    ShortCircuitShm shm = new ShortCircuitShm(ShmId.createRandom(), stream);
    shm.free();
    stream.close();
    FileUtil.fullyDelete(path);
  }

  @Test(timeout=60000)
View Full Code Here

Examples of org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm.free()

        SharedFileDescriptorFactory.create("shm_",
            new String[] { path.getAbsolutePath() } );
    FileInputStream stream =
        factory.createDescriptor("testStartupShutdown", 4096);
    ShortCircuitShm shm = new ShortCircuitShm(ShmId.createRandom(), stream);
    shm.free();
    stream.close();
    FileUtil.fullyDelete(path);
  }

  @Test(timeout=60000)
View Full Code Here

Examples of org.apache.harmony.awt.nativebridge.Int32Pointer.free()

        Int32Pointer texPtr =
                NativeBridge.getInstance().createInt32Pointer(1, true);
        gl.glGenTextures(1, texPtr);
        gradTexName = texPtr.get(0);
        gl.glBindTexture(GLDefs.GL_TEXTURE_1D, gradTexName);
        texPtr.free();
        gl.glTexParameteri(GLDefs.GL_TEXTURE_1D, GLDefs.GL_TEXTURE_MAG_FILTER, GLDefs.GL_LINEAR);
        gl.glTexParameteri(GLDefs.GL_TEXTURE_1D, GLDefs.GL_TEXTURE_MIN_FILTER, GLDefs.GL_LINEAR);
        gl.glTexEnvf(GLDefs.GL_TEXTURE_ENV, GLDefs.GL_TEXTURE_ENV_MODE, GLDefs.GL_REPLACE);

        // Setup texture coordinates generation
View Full Code Here

Examples of org.apache.harmony.awt.nativebridge.Int8Pointer.free()

        assertEquals(0, iptr2.get(10));
        assertEquals(0, iptr2.get(11));

        iptr1.free();
        iptr2.free();
    }
}
View Full Code Here

Examples of org.apache.harmony.luni.platform.PlatformAddress.free()

     */
    public final void free() {
        if (isAddressValid()) {
            PlatformAddress a = address;
            address = PlatformAddress.INVALID;
            a.free();
        }
    }

    @Override
    final protected byte[] protectedArray() {
View Full Code Here

Examples of org.apache.lucene.facet.search.FacetArrays.free()

    FacetArrays arrays = new FacetArrays(new IntArrayAllocator(1, 1), new FloatArrayAllocator(1, 1));

    int[] intArray = arrays.getIntArray();
    // Set the element, then free
    intArray[0] = 1;
    arrays.free();

    // We should expect a cleared array back
    intArray = arrays.getIntArray();
    assertEquals("Expected a cleared array back, but the array is still filled", 0, intArray[0]);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.free()

     * @param session the session we operate on
     */
    private void free(IoSession session) {
        IoBuffer buf = buffersMap.remove(session);
        if (buf != null) {
            buf.free();
        }
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of org.directmemory.memory.OffHeapMemoryBuffer.free()

   
    Pointer p = mem.store(new byte[size]);
    assertNotNull(p);
    assertEquals(size,p.end);
    assertEquals(size, mem.used());
    mem.free(p);
    assertEquals(0, mem.used());   
  }
 

View Full Code Here

Examples of org.fcrepo.server.storage.ConnectionPool.free()

                            + " did not finish successfully, which may compromise"
                            + " the repo. Please re-run the SQL rebuild.");
                }
            }
        } finally {
            if (conn != null) cpm.free(conn);
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.