parrotcode: Garbage Collection | |
Contents | Configuration |
config/auto/gc.pm - Garbage Collection
Checks whether the --gc
command-line option was passed to Configure.pl and sets the memory allocator accordingly.
--gc
can take the values:
gc
libc
malloc
along with src/gc/res_lea.c.
This doesn't work.
See [perl #42774].malloc
malloc-trace
cc_gen('config/auto/gc/test_c.in');
eval { cc_build(); };
my $test = 0;
unless ($@) {
$test = cc_run();
}
cc_clean();
# used size should be somewhere here
unless ($test >= 128 && $test < 155) {
# if not, use own copy of malloc
$gc = 'malloc';
}
|