How do I stop GC_CONCURRENT running so frequently?

后端 未结 1 1458
深忆病人
深忆病人 2020-12-30 16:11

I am using a thread which records the audio using AudioRecord class and placed in recorderBUffer (which is a linked list of Short[]) , a separate thread which does the encod

相关标签:
1条回答
  • 2020-12-30 16:28

    A temporaral solution of the problem was by increasing the HeapSize using dalvik.system.VMRuntime.getRuntime().setMinimumHeapSize(32 * 1024 * 1024); However this approach is not recommended and should be avoided.

    By Extensive debugging I found that the real problem was due to overlapped interfaces and some leaky functions. Later I removed one of the Interface, redesigned the overall solution and re-factored the code and that solved my problem.

    Please share if you have some other Solution,

    0 讨论(0)
提交回复
热议问题