lib.unwind
Class ElfImage

java.lang.Object
  extended by lib.unwind.ElfImage

public class ElfImage
extends Object

An object that, eventually, releases its underlying mmaped [elf] data during a garbage collect. Since the garbage collect will, typically, occure after libunwind's step has finished with the data this operation is safe. However, there is the real possibility of the GC occuring early, unmapping the data causing an NPE.


Field Summary
private  long image
           
private  long size
           
 
Constructor Summary
ElfImage(long image, long size)
           
 
Method Summary
protected  void finalize()
           
private static void unmap(long image, long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

private final long image

size

private final long size
Constructor Detail

ElfImage

public ElfImage(long image,
                long size)
Method Detail

finalize

protected void finalize()
Overrides:
finalize in class Object

unmap

private static void unmap(long image,
                          long size)