The Java language provides some built-in routines for controlling garbage collection: the methods System.gc() and System.runFinalization(). System.gc() requests that garbage collection be run. System.runFinalizers() asks that finalizers be executed, but that memory is not necessarily freed.
System.gc() 和System.runFinalization()
最新推荐文章于 2024-11-01 15:50:15 发布