winne2 / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

JNI local ref table overflow #122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build bluecove for android and deploy in application
2. run a thread in java calling 
'Java_com_intel_bluetooth_BluetoothStackBlueZ_l2Receive' through jni
3. if no events are recieved the overflow will occur.

What is the expected output? What do you see instead?
no error should be shown, the local refs should be cleaned up.

###########STEPS TO FIX##################
the following method in common.c needs to delete a localref.
isCurrentThreadInterrupted should call (*env)->DeleteLocalRef(env, peerClass); 
before returning.

Original issue reported on code.google.com by bros...@gmail.com on 28 Dec 2010 at 5:52