Searched refs:finalize (Results 1 - 25 of 43) sorted by relevance

12

/libcore/luni/src/test/native/
H A Dlibcore_util_NativeAllocationRegistryTest.cpp26 static void finalize(uint64_t* ptr) { function
33 return static_cast<jlong>(reinterpret_cast<uintptr_t>(&finalize));
/libcore/luni/src/test/java/libcore/java/lang/ref/
H A DFinalizeTest.java54 @Override protected void finalize() throws Throwable {
55 super.finalize();
102 @Override protected void finalize() throws Throwable { method in class:FinalizeTest.ConstructionFails
109 * to finalize. Check that objects near that limit are okay.
122 @Override protected void finalize() throws Throwable {
123 System.out.println("finalize sleeping " + millis + " ms");
145 @Override protected void finalize() throws Throwable {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DRuntimeTest.java46 protected void finalize() { method in class:RuntimeTest.HasFinalizer
52 protected void finalize() { method in class:RuntimeTest
/libcore/dalvik/test-rules/src/test/java/dalvik/system/
H A DCloseGuardSupportTest.java107 assertEquals("Class java.lang.String does not have a finalize() method",
137 protected void finalize() throws Throwable {
138 super.finalize();
164 protected void finalize() throws Throwable {
166 super.finalize();
/libcore/ojluni/src/main/java/sun/net/www/
H A DMeteredStream.java206 protected void finalize() throws Throwable { method in class:MeteredStream
214 super.finalize();
/libcore/dalvik/src/test/java/dalvik/system/
H A DCloseGuardTest.java164 * Make finalize public so that it can be tested directly without relying on garbage
168 public void finalize() throws Throwable { method in class:CloseGuardTest.ResourceOwner
170 super.finalize();
/libcore/ojluni/src/main/java/java/lang/
H A DObject.java534 * A subclass overrides the {@code finalize} method to dispose of
537 * The general contract of {@code finalize} is that it is invoked
543 * finalized. The {@code finalize} method may take any action, including
545 * of {@code finalize}, however, is to perform cleanup actions before
546 * the object is irrevocably discarded. For example, the finalize method
551 * The {@code finalize} method of class {@code Object} performs no
556 * invoke the {@code finalize} method for any given object. It is
557 * guaranteed, however, that the thread that invokes finalize will not
558 * be holding any user-visible synchronization locks when finalize is
559 * invoked. If an uncaught exception is thrown by the finalize metho
581 protected void finalize() throws Throwable { } method in class:Object
[all...]
H A DEnum.java293 * enum classes cannot have finalize methods.
295 protected final void finalize() { } method in class:Enum
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldObjectTest.java77 public void finalize() throws Throwable { method in class:OldObjectTest.MockObject
78 super.finalize();
H A DThreadTest.java319 @Override protected void finalize() throws Throwable {
320 super.finalize();
/libcore/ojluni/src/main/java/java/net/
H A DSocketOutputStream.java174 * Overrides finalize, the fd is closed by the Socket.
176 protected void finalize() {} method in class:SocketOutputStream
H A DSocketInputStream.java289 * Overrides finalize, the fd is closed by the Socket.
291 protected void finalize() {} method in class:SocketInputStream
/libcore/benchmarks/src/benchmarks/
H A DReferenceBenchmark.java100 protected void finalize() { method in class:ReferenceBenchmark.FinalizableObject
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
H A DSoftReferenceTest.java89 protected void finalize() {
H A DReferenceTest.java149 * get called, and that clear/enqueue/finalize happen in the
154 * java.lang.Object#finalize()
168 protected void finalize() {
271 protected void finalize() {
283 "' in finalize()");
305 assertTrue("finalize() should have been called.",
/libcore/luni/src/main/java/java/lang/ref/
H A DFinalizerReference.java141 * finalize() method is called, we know all previously-enqueued finalizable
147 @Override protected synchronized void finalize() throws Throwable { method in class:FinalizerReference.Sentinel
/libcore/ojluni/src/main/java/java/io/
H A DFileInputStream.java415 protected void finalize() throws IOException { method in class:FileInputStream
H A DFileOutputStream.java418 protected void finalize() throws IOException { method in class:FileOutputStream
/libcore/ojluni/src/main/java/java/util/zip/
H A DInflater.java367 * being used, but will also be called automatically by the finalize()
387 protected void finalize() { method in class:Inflater
H A DZipFile.java464 protected void finalize() throws Throwable { method in class:ZipFile.ZipFileInflaterInputStream
694 protected void finalize() throws IOException { method in class:ZipFile
816 protected void finalize() { method in class:ZipFile.ZipFileInputStream
H A DDeflater.java537 * finalize() method. Once this method is called, the behavior
556 protected void finalize() { method in class:Deflater
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixDirectoryStream.java241 protected void finalize() throws IOException { method in class:UnixDirectoryStream
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexFile.java333 @Override protected void finalize() throws Throwable { method in class:DexFile
341 super.finalize();
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DUnixAsynchronousServerSocketChannelImpl.java136 protected void finalize() throws Throwable { method in class:UnixAsynchronousServerSocketChannelImpl
143 super.finalize();
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java549 @Override protected synchronized void finalize() throws Throwable { method in class:ExpatParser
556 super.finalize();
657 @Override protected synchronized void finalize() throws Throwable { method in class:ExpatParser.ClonedAttributes
664 super.finalize();
796 protected synchronized void finalize() throws Throwable { method in class:ExpatParser.EntityParser

Completed in 428 milliseconds

12