Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sometimes Logcat shows "GREF has increased to 301"

I am just doing a simple POST through an HttpConnection, and Logcat sometimes responds by = "GREF has increased to 301"

what does it mean? thanks.

like image 537
papachan Avatar asked Mar 08 '11 00:03

papachan


1 Answers

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.

like image 88
fadden Avatar answered Sep 18 '22 02:09

fadden