2011年10月2日
摘要: GC_FOR_MALLOC 含义 2011-06-15 15:58 GC_FOR_MALLOC means that the GC was triggered because there wasn't enough memory left on the heap to perform an... 阅读全文
posted @ 2011-10-02 11:34 且听风止 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 1. 尽可能不要创建global reference和global weak reference. 创建这两类引用的JNI接口NewGlobalReference和NewGlobalWeakReference内部实现有一个锁。这个锁使得在多处理器上的可扩展性非常差,因为各个线程都在等待这个锁。所... 阅读全文
posted @ 2011-10-02 11:29 且听风止 阅读(791) 评论(0) 推荐(0) 编辑