aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of27
1 files changed, 15 insertions, 12 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 64bb5473..48f396d9 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -3345,9 +3345,9 @@ Changes the collector to generational mode.
3345Returns the previous mode (@id{LUA_GCGEN} or @id{LUA_GCINC}). 3345Returns the previous mode (@id{LUA_GCGEN} or @id{LUA_GCINC}).
3346} 3346}
3347 3347
3348@item{@defid{LUA_GCSETPARAM} (int param, int value)| 3348@item{@defid{LUA_GCPARAM} (int param, int val)|
3349Changes the values of a parameter of the collector and returns 3349Changes and/or returns the value of a parameter of the collector.
3350the previous value of that parameter. 3350If @id{val} is negative, the call only returns the current value.
3351The argument @id{param} must have one of the following values: 3351The argument @id{param} must have one of the following values:
3352@description{ 3352@description{
3353@item{@defid{LUA_GCPMINORMUL}| The minor multiplier. } 3353@item{@defid{LUA_GCPMINORMUL}| The minor multiplier. }
@@ -6390,13 +6390,12 @@ Changes the collector mode to incremental and returns the previous mode.
6390Changes the collector mode to generational and returns the previous mode. 6390Changes the collector mode to generational and returns the previous mode.
6391} 6391}
6392 6392
6393@item{@St{setparam}| 6393@item{@St{param}|
6394Changes the values of a parameter of the collector and returns 6394Changes and/or retrieves the values of a parameter of the collector.
6395the previous value of that parameter. 6395This option must be followed by one or two extra arguments:
6396This option must be followed by two extra arguments: 6396The name of the parameter being changed or retrieved (a string)
6397The name of the parameter being changed (a string) 6397and an optional new value for that parameter (an integer).
6398and the new value for that parameter (an integer). 6398The first argument must have one of the following values:
6399The argument @id{param} must have one of the following values:
6400@description{ 6399@description{
6401@item{@St{minormul}| The minor multiplier. } 6400@item{@St{minormul}| The minor multiplier. }
6402@item{@St{majorminor}| The major-minor multiplier. } 6401@item{@St{majorminor}| The major-minor multiplier. }
@@ -6405,6 +6404,10 @@ The argument @id{param} must have one of the following values:
6405@item{@St{stepmul}| The step multiplier. } 6404@item{@St{stepmul}| The step multiplier. }
6406@item{@St{stepsize}| The step size. } 6405@item{@St{stepsize}| The step size. }
6407} 6406}
6407The call always returns the previous value of the parameter.
6408If the call does not give a new value,
6409the value is left unchanged.
6410
6408Lua rounds these values before storing them; 6411Lua rounds these values before storing them;
6409so, the value returned as the previous value may not be 6412so, the value returned as the previous value may not be
6410exactly the last value set. 6413exactly the last value set.
@@ -9298,7 +9301,7 @@ declare a local variable with the same name in the loop body.
9298@item{ 9301@item{
9299Parameters for the garbage collection are not set 9302Parameters for the garbage collection are not set
9300with the options @St{incremental} and @St{generational}; 9303with the options @St{incremental} and @St{generational};
9301instead, there is a new option @St{setparam} to that end. 9304instead, there is a new option @St{param} to that end.
9302Moreover, there were some changes in the parameters themselves. 9305Moreover, there were some changes in the parameters themselves.
9303} 9306}
9304 9307
@@ -9327,7 +9330,7 @@ to signal the end of the dump.
9327@item{ 9330@item{
9328Parameters for the garbage collection are not set 9331Parameters for the garbage collection are not set
9329with the options @Lid{LUA_GCINC} and @Lid{LUA_GCGEN}; 9332with the options @Lid{LUA_GCINC} and @Lid{LUA_GCGEN};
9330instead, there is a new option @Lid{LUA_GCSETPARAM} to that end. 9333instead, there is a new option @Lid{LUA_GCPARAM} to that end.
9331Moreover, there were some changes in the parameters themselves. 9334Moreover, there were some changes in the parameters themselves.
9332} 9335}
9333 9336