Sometimes Logcat shows "GREF has increased to 301"
I am just doing a simple POST through an HttpConnection, and Logcat sometimes responds 开发者_如何学JAVAby = "GREF has increased to 301"
what does it mean? thanks.
It's a debugging message from the Dalvik VM. When CheckJNI is enabled (which it is by default on the emulator and "-eng" builds), the cap for JNI global references is reduced to 2000, and the VM will occasionally emit status messages as the level rises and falls. The purpose is to make egregious global reference leaks obvious.
If you're not writing native code with the NDK, you can ignore the messages.
精彩评论