简体   繁体   English

Android垃圾收集器术语

[英]android garbage collector lingo

Trying to find some information on the GC. 试图在GC上找到一些信息。 In my log i see these entrie often: 在我的日志中,我经常看到这些条目:

08-19 22:35:27.513: DEBUG/dalvikvm(1981): GC_EXPLICIT freed 93 objects / 3160 bytes in 999ms
08-19 22:35:28.256: DEBUG/dalvikvm(2331): GC_FOR_MALLOC freed 15082 objects / 523496 bytes in 47ms

whats the difference between the 2? 2和有什么区别?

When you call System.gc(), a GC_EXPLICIT garbage collection will happen some time in the future. 当您调用System.gc()时,将来会发生GC_EXPLICIT垃圾回收。 Malloc is a C term and function for allocating memory. Malloc是C术语,用于分配内存。 A GC for malloced memory will be the system cleaning up your dead java variables because they are no longer in use. 用于分配内存的GC将是系统清理死掉的Java变量,因为它们不再使用了。 (This is done automatically as needed). (这是根据需要自动完成的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM