This file is indexed.

/usr/share/gap/lib/gasman.gd is in gap-libs 4r6p5-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#############################################################################
##
#W  gasman.gd                   GAP Library                       Steve Linton
##
##
#Y  Copyright (C)  1996,  Lehrstuhl D für Mathematik,  RWTH Aachen,  Germany
#Y  (C) 1998 School Math and Comp. Sci., University of St Andrews, Scotland
#Y  Copyright (C) 2002 The GAP Group
##
##  This file contains declarations of functions that report information from
##  the GASMAN garbage collector.
##

#############################################################################
##
#F  GasmanStatistics( )
##
##  <#GAPDoc Label="GasmanStatistics">
##  <ManSection>
##  <Func Name="GasmanStatistics" Arg=''/>
##
##  <Description>
##  <Ref Func="GasmanStatistics"/> returns a record containing some
##  information from the garbage collection mechanism.
##  The record may contain up to four components:
##  <C>full</C>, <C>partial</C>, <C>npartial</C>, and <C>nfull</C>.
##  <P/>
##  The <C>full</C> component will be present if a full garbage collection
##  has taken place since &GAP; started. It contains information about
##  the most recent full garbage collection. It is a record, with six
##  components: <C>livebags</C> contains the number of bags which survived
##  the garbage collection; <C>livekb</C> contains the total number of
##  kilobytes occupied by those bags; <C>deadbags</C> contains the total
##  number of bags which were reclaimed by that garbage collection and
##  all the partial garbage collections preceding it, since the
##  previous full garbage collection; <C>deadkb</C> contains the total
##  number of kilobytes occupied by those bags; <C>freekb</C> reports the
##  total number of kilobytes available in the &GAP; workspace for new
##  objects and <C>totalkb</C> the actual size of the workspace.
##  <P/>
##  These figures should be viewed with some caution. They are
##  stored internally in fixed length integer formats, and <C>deadkb</C>
##  and <C>deadbags</C> are liable to overflow if there are many partial
##  collections before a full collection. Also, note that <C>livekb</C> and
##  <C>freekb</C> will not usually add up to <C>totalkb</C>. The difference is
##  essentially the space overhead of the memory management system.
##  <P/>
##  The <C>partial</C> component will be present if there has been a
##  partial garbage collection since the last full one. It is also a
##  record with the same six components as <C>full</C>. In this case
##  <C>deadbags</C> and <C>deadkb</C> refer only to the number and total size of
##  the garbage bags reclaimed in this partial garbage collection and
##  <C>livebags</C>and <C>livekb</C> only to the numbers and total size of the
##  young bags that were considered for garbage collection, and survived.
##  <P/>
##  The <C>npartial</C> and <C>nfull</C> components will contain the number 
##  of full and partial garbage collections performed since &GAP; started.
##  </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareGlobalFunction("GasmanStatistics");


#############################################################################
##
#F  GasmanMessageStatus( )
#F  SetGasmanMessageStatus( <stat> )
##
##  <#GAPDoc Label="GasmanMessageStatus">
##  <ManSection>
##  <Func Name="GasmanMessageStatus" Arg=''/>
##  <Func Name="SetGasmanMessageStatus" Arg='stat'/>
##
##  <Description>
##  <Ref Func="GasmanMessageStatus"/> returns one of the strings
##  <C>"none"</C>, <C>"full"</C>, or <C>"all"</C>,
##  depending on whether the garbage collector is currently set to print
##  messages on
##  no collections, full collections only, or all collections, respectively. 
##  <P/>
##  Calling <Ref Func="SetGasmanMessageStatus"/> with the argument
##  <A>stat</A>, which should be one of the three strings mentioned above,
##  sets the garbage collector messaging level.
##  </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareGlobalFunction("GasmanMessageStatus");
DeclareGlobalFunction("SetGasmanMessageStatus");


#############################################################################
##
#F  GasmanLimits()
##
##  <#GAPDoc Label="GasmanLimits">
##  <ManSection>
##  <Func Name="GasmanLimits" Arg=''/>
##
##  <Description>
##  <Ref Func="GasmanLimits"/> returns a record with three components:
##  <C>min</C> is the minimum workspace size as set by the <C>-m</C>
##  command line option in kilobytes.
##  The workspace size will never be reduced below this by the garbage
##  collector.
##  <C>max</C> is the maximum workspace size,
##  as set by the '-o' command line option, also in kilobytes.
##  If the workspace would need to grow past this point,
##  &GAP; will enter a break loop to warn the user.
##  A value of 0 indicates no limit.
##  <C>kill</C> is the absolute maximum, set by the <C>-K</C> command line
##  option.
##  The workspace will never be allowed to grow past this limit.
##  </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareGlobalFunction("GasmanLimits");


#############################################################################
##
#E