The R Project SVN R

Rev

Rev 73749 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73749 Rev 77208
Line 1... Line 1...
1
% File src/library/base/man/gc.Rd
1
% File src/library/base/man/gc.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2019 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{gc}
6
\name{gc}
7
\title{Garbage Collection}
7
\title{Garbage Collection}
8
\usage{
8
\usage{
Line 27... Line 27...
27
}
27
}
28
\details{
28
\details{
29
  A call of \code{gc} causes a garbage collection to take place.
29
  A call of \code{gc} causes a garbage collection to take place.
30
  This will also take place automatically without user intervention, and the
30
  This will also take place automatically without user intervention, and the
31
  primary purpose of calling \code{gc} is for the report on memory
31
  primary purpose of calling \code{gc} is for the report on memory
32
  usage. For an accurate report \code{full = TRUE} should be used.  
32
  usage.  For an accurate report \code{full = TRUE} should be used.
33
 
33
 
34
  It can be useful to call \code{gc} after a large object
34
  It can be useful to call \code{gc} after a large object
35
  has been removed, as this may prompt \R to return memory to the
35
  has been removed, as this may prompt \R to return memory to the
36
  operating system.
36
  operating system.
37
 
37
 
38
  \R allocates space for vectors in multiples of 8 bytes: hence the
38
  \R allocates space for vectors in multiples of 8 bytes: hence the
39
  report of \code{"Vcells"}, a relict of an earlier allocator (that used
39
  report of \code{"Vcells"}, a relic of an earlier allocator (that used
40
  a vector heap).
40
  a vector heap).
41
 
41
 
42
  When \code{gcinfo(TRUE)} is in force, messages are sent to the message
42
  When \code{gcinfo(TRUE)} is in force, messages are sent to the message
43
  connection at each garbage collection of the form
43
  connection at each garbage collection of the form
44
\preformatted{    Garbage collection 12 = 10+0+2 (level 0) ...
44
\preformatted{    Garbage collection 12 = 10+0+2 (level 0) ...