README.sgi 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Performance of the incremental collector can be greatly enhanced with
  2. -DNO_EXECUTE_PERMISSION.
  3. The collector should run with all of the -32, -n32 and -64 ABIs. Remember to
  4. define the AS macro in the Makefile to be "as -64", or "as -n32".
  5. If you use -DREDIRECT_MALLOC=GC_malloc with C++ code, your code should make
  6. at least one explicit call to malloc instead of new to ensure that the proper
  7. version of malloc is linked in.
  8. Sproc threads are not supported in this version, though there may exist other
  9. ports.
  10. Pthreads support is provided. This requires that:
  11. 1) You compile the collector with -DGC_IRIX_THREADS specified in the Makefile.
  12. 2) You have the latest pthreads patches installed.
  13. (Though the collector makes only documented pthread calls,
  14. it relies on signal/threads interactions working just right in ways
  15. that are not required by the standard. It is unlikely that this code
  16. will run on other pthreads platforms. But please tell me if it does.)
  17. 3) Every file that makes thread calls should define IRIX_THREADS and then
  18. include gc.h. Gc.h redefines some of the pthread primitives as macros which
  19. also provide the collector with information it requires.
  20. 4) pthread_cond_wait and pthread_cond_timed_wait should be prepared for
  21. premature wakeups. (I believe the pthreads and realted standards require this
  22. anyway. Irix pthreads often terminate a wait if a signal arrives.
  23. The garbage collector uses signals to stop threads.)
  24. 5) It is expensive to stop a thread waiting in IO at the time the request is
  25. initiated. Applications with many such threads may not exhibit acceptable
  26. performance with the collector. (Increasing the heap size may help.)
  27. 6) The collector should not be compiled with -DREDIRECT_MALLOC. This
  28. confuses some library calls made by the pthreads implementation, which
  29. expect the standard malloc.