找回密码
 注册
查看: 1698|回复: 0

R语言:gctorture()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 18:56:33 | 显示全部楼层 |阅读模式
gctorture(base)
gctorture()所属R语言包:base

                                        Torture Garbage Collector
                                         酷刑垃圾收集器

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Provokes garbage collection on (nearly) every memory allocation. Intended to ferret out memory protection bugs.  Also makes R run very slowly, unfortunately.
(几乎)每个内存分配引发垃圾收集。为了揪出内存保护错误。也使得,ř运行速度很慢,很可惜。


用法----------Usage----------


gctorture(on = TRUE)
gctorture2(step, wait = step, inhibit_release = FALSE)



参数----------Arguments----------

参数:on
logical; turning it on/off.
逻辑;打开/关闭。


参数:step
integer; run GC every step allocations; step       = 0 turns the GC torture off.
整数;运行GC每step分配;step       = 0原来的GC酷刑。


参数:wait
integer; number of allocations to wait before starting GC torture.
整数;分配的号码前等待出发的GC酷刑。


参数:inhibit_release
logical; do not release free objects for re-use: use with caution.
逻辑;不释放再利用免费对象:谨慎使用。


Details

详情----------Details----------

Calling gctorture(TRUE) instructs the memory manager to force a full GC on every allocation. gctorture2 provides a more refined interface that allows the start of the GC torture to be deferred and also gives the option of running a GC only every step allocations.
调用gctorture(TRUE)指示内存管理器,以迫使每分配一个完整的GC。 gctorture2提供了一个更精致的界面,使GC的酷刑开始为递延,并给出了选择运行GC的每step分配。

The third argument to gctorture2 is only used if R has been configured with a strict write barrier enabled.  When this is the case all garbage collections are full collections, and the memory manager marks free nodes and enables checks in many situations that signal an error when a free node is used.  This can greatly help in isolating unprotected values in C code.  It does not detect the case where a node becomes free and is reallocated.  The inhibit_release argument can be used to prevent such reallocation.  This will cause memory to grow and should be used with caution and in conjunction with operating system facilities to monitor and limit process memory use.
第三个参数gctorture2仅用于R已配置启用了严格的写屏障。在这种情况下,所有的垃圾收集是完整的集合,内存管理器,标志着自由的节点,并允许在许多情况下,这标志着一个自由节点时使用的错误检查。这可以极大地帮助隔离在C代码中的未受保护的价值。它不检测的情况下,一个节点成为自由和重新分配。 inhibit_release参数,可以用来防止这种再分配。这将导致内存增长,应谨慎并结合操作系统设施,用于监视和限制进程的内存使用。


值----------Value----------

Previous value of first argument.
上一页第一个参数值。


作者(S)----------Author(s)----------


Peter Dalgaard and Luke Tierney

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-4 20:57 , Processed in 0.021999 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表