4.42 Memory Management
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Memory Management
          • garbage_collect/0
          • garbage_collect_atoms/0
          • garbage_collect_clauses/0
          • set_prolog_gc_thread/1
          • trim_stacks/0
          • set_prolog_stack/2
          • prolog_stack_property/2
    • Packages
Availability:built-in
garbage_collect_atoms
Reclaim unused atoms. Normally invoked after agc_margin (a Prolog flag) atoms have been created. On multithreaded versions the actual collection is delayed until there are no threads performing normal garbage collection. In this case garbage_collect_atoms/0 returns immediately. Note that there is no guarantee it will ever happen, as there may always be threads performing garbage collection.