dalvik.system
Class NativeStart
java.lang.Object
dalvik.system.NativeStart
- All Implemented Interfaces:
- Runnable
class NativeStart
- extends Object
- implements Runnable
Dummy class used during JNI initialization. The JNI functions want
to be able to create objects, and the VM needs to discard the references
when the function returns. That gets a little weird when we're
calling JNI functions from the C main(), and there's no Java stack frame
to hitch the references onto.
Rather than having some special-case code, we create this simple little
class and pretend that it called the C main().
This also comes in handy when a native thread attaches itself with the
JNI AttachCurrentThread call. If they attach the thread and start
creating objects, we need a fake frame to store stuff in.
|
Method Summary |
void |
run()
Begin doing the active part of the class' code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
run
public void run()
- Description copied from interface:
Runnable
- Begin doing the active part of the class' code.
- Specified by:
run in interface Runnable
Please submit a feedback, bug or feature