开发者

Sometimes Logcat shows "GREF has increased to 301"

开发者 https://www.devze.com 2023-02-15 04:58 出处:网络
I am just doing a simple POST through an HttpConnection, and Logcat sometimes responds 开发者_如何学JAVAby =

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消