Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Created November 10, 2016 20:28
Show Gist options
  • Save matiasgarciaisaia/5cd7b42925d7ee175dc9b27531858ee4 to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/5cd7b42925d7ee175dc9b27531858ee4 to your computer and use it in GitHub Desktop.
Running `make -f Makefile.direct test` on Bash on Ubuntu on Windows 10
$ make -f Makefile.direct test
cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -c ./tests/test.c
mv test.o tests/test.o
rm -f gctest
./if_mach SPARC DRSNX cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -o gctest tests/test.o gc.a -lucb
./if_mach HP_PA HPUX cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -o gctest tests/test.o gc.a -ldld `./threadlibs`
./if_mach M68K AMIGA cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -UGC_AMIGA_MAKINGLIB -o gctest tests/test.o gc.a `./threadlibs`
./if_not_there gctest cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -o gctest tests/test.o gc.a `./threadlibs`
^^^^Starting command^^^^
./setjmp_test
This appears to be a X86_64 running LINUX
Stack appears to grow down, which is the default.
A good guess for STACKBOTTOM on this machine is 0xf6d37000.
Note that this may vary between machines of ostensibly
the same architecture (e.g. Sun 3/50s and 3/80s).
On many machines the value is not fixed.
A good guess for ALIGNMENT on this machine is 8.
The following is a very dubious test of one root marking strategy.
Results may not be accurate/useful:
Setjmp-based register marking code may work.
Some GC internal configuration stuff:
WORDSZ = 64, ALIGNMENT = 8, GC_GRANULE_BYTES = 16
Using one mark bit per granule.
./gctest
Completed 1 tests
Allocated 748193 collectable objects
Allocated 202 uncollectable objects
Allocated 1250000 atomic objects
Allocated 21760 stubborn objects
Finalized 2206/2206 objects - finalization is probably ok
Total number of bytes allocated is 104340134
Total memory use by allocated blocks is 495616 bytes
Final heap size is 7659520 bytes
Final number of reachable objects is 421
Completed 93 collections
Collector appears to work
cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -c -I. ./cord/cordbscs.c
mv cordbscs.o cord/cordbscs.o
cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -c -I. ./cord/cordxtra.c
mv cordxtra.o cord/cordxtra.o
cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -c -I. ./cord/cordprnt.c
mv cordprnt.o cord/cordprnt.o
rm -f cord/cordtest
./if_mach SPARC DRSNX cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -o cord/cordtest ./cord/tests/cordtest.c cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o gc.a -lucb
./if_mach HP_PA HPUX cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -o cord/cordtest ./cord/tests/cordtest.c cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o gc.a -ldld `./threadlibs`
./if_mach M68K AMIGA cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -UGC_AMIGA_MAKINGLIB -o cord/cordtest ./cord/tests/cordtest.c cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o gc.a `./threadlibs`
./if_not_there cord/cordtest cc -O -I./include -I./libatomic_ops/src -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -o cord/cordtest ./cord/tests/cordtest.c cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o gc.a `./threadlibs`
^^^^Starting command^^^^
cord/cordtest
SUCCEEDED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment