If on is
nil, generation 2 is not garbage collected. If on is
t, the generation is garbage collected.
collect-generation-2 is implemented only in 32-bit LispWorks. It is not relevant to the Memory Management API in 64-bit implementations, where you can use set-blocking-gen-num instead.
LispWorks User Guide and Reference Manual - 20 Sep 2017