2013-07-03 02:52:38 +00:00
|
|
|
/* Copyright (c) 2008-2013, Avian Contributors
|
2009-05-26 05:31:13 +00:00
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software
|
|
|
|
for any purpose with or without fee is hereby granted, provided
|
|
|
|
that the above copyright notice and this permission notice appear
|
|
|
|
in all copies.
|
|
|
|
|
|
|
|
There is NO WARRANTY for this software. See license.txt for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
package avian;
|
|
|
|
|
2012-03-13 14:28:33 +00:00
|
|
|
import sun.misc.Unsafe;
|
|
|
|
|
2009-05-26 05:31:13 +00:00
|
|
|
public abstract class Machine {
|
|
|
|
|
2012-03-13 14:28:33 +00:00
|
|
|
private static final Unsafe unsafe = Unsafe.getUnsafe();
|
|
|
|
|
2009-05-26 05:31:13 +00:00
|
|
|
public static native void dumpHeap(String outputFile);
|
|
|
|
|
2012-03-13 14:28:33 +00:00
|
|
|
public static Unsafe getUnsafe() {
|
|
|
|
return unsafe;
|
|
|
|
}
|
|
|
|
|
2009-05-26 05:31:13 +00:00
|
|
|
}
|