GO-V.ORG
As seen in

Garbage collection (computer science)

: Memory is divided into working and free memory; new objects are allocated in the former. When it is full (depicted), garbage collection is performed: All data structures still in use are located by pointer tracing and copied into consecutive locations in free memory. In computer science, garbage collection (GC) is a form of automatic memory management. The garbage collector attempts to reclaim memory that was allocated by the program, but is no longer referenced; such memory is called garbage. Garbage collection was invented by American computer scientist John McCarthy around 1959 to simplify manual memory management in Lisp. Garbage collection relieves the programmer from doing manual... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

: Memory is divided into working and free memory; new objects are allocated in the former. When it is full (depicted), garbage collection is performed: All data structures still in use are located by pointer tracing and copied into consecutive locations in free memory. In computer science, garbage collection (GC) is a form of automatic memory management. The garbage collector attempts to reclaim memory that was allocated by the program, but is no longer referenced; such memory is called garbage. Garbage collection was invented by American computer scientist John McCarthy around 1959 to simplify manual memory management in Lisp. Garbage collection relieves the programmer from doing manual memory management, where the programmer specifies what objects to de-allocate and return to the memory system and when to do so. Other, similar techniques include stack allocation, region inference, and memory ownership, and combinations thereof. Garbage collection may take a significant proportion of a program's total processing time, and affect performance as a result. Resources other than memory, such as network sockets, database handles, windows, file descriptors, and device descriptors, are not typically handled by garbage collection, but rather by other methods (e.g. destructors). Some such methods de-allocate memory also.

References

  1. ^ "A Unified Theory of Garbage Collection" . cs.cornell.edu . 8 November 2019 . Retrieved 22 April 2026 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  2. ^ JF Bastien; Alisdair Meredith (16 April 2021). "Removing Garbage Collection Support" . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  3. ^ "std::pointer_safety - cppreference.com" . en.cppreference.com . Retrieved 9 December 2024 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  4. ^ "A Guide to Garbage Collection in Programming" . freeCodeCamp.org . 16 January 2020 . Retrieved 21 June 2024 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  5. ^ "Garbage Collection - D Programming Language" . dlang.org . Retrieved 17 October 2022 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  6. ^ "Garbage Collection" . rebelsky.cs.grinnell.edu . Retrieved 13 January 2024 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  7. ^ Microsoft (28 February 2023). "Fundamentals of garbage collection | Microsoft Learn" . Retrieved 29 March 2023 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  8. ^ Abelson, Harold; Sussman, Gerald Jay; Sussman, Julie (2016). Structure and Interpretation of Computer Programs (PDF) (2nd ed.). Cambridge, Massachusetts, US: MIT Press . pp. 734– 736. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  9. ^ a b "Apple says Mac app makers must transition to ARC memory management by May" . AppleInsider . 20 February 2015. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  10. ^ Ash, Mike. "Friday Q&A 2013-09-27: ARM64 and You" . mikeash.com . Retrieved 27 April 2014 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  11. ^ Baker, Henry G. (1978). "List processing in real time on a serial computer". Communications of the ACM . 21 (4): 280– 294. doi : 10.1145/359460.359470 . hdl : 1721.1/41976 . S2CID 17661259 . see also description Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  12. ^ Chisnall, David (12 January 2011). Influential Programming Languages, Part 4: Lisp . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  13. ^ Cichon, Waldemar (21 February 2015). "App Store: Apple entfernt Programme mit Garbage Collection" . Heise.de . Retrieved 30 March 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  14. ^ a b Cruz, José R. C. (22 May 2012). "Automatic Reference Counting on iOS" . Dr. Dobbs . Archived from the original on 16 May 2020 . Retrieved 30 March 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  15. ^ "Fast Garbage Collection". Call-A.P.P.L.E. : 40– 45. January 1981. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  16. ^ Fu, Wei; Hauser, Carl (2005). "A real-time garbage collection framework for embedded systems". Proceedings of the 2005 Workshop on Software and Compilers for Embedded Systems - SCOPES '05 . pp. 20– 26. doi : 10.1145/1140389.1140392 . ISBN 1-59593207-0 . S2CID 8635481 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  17. ^ "I did some work to speed up string garbage collection under Applesoft..." Hacker News . Retrieved 29 June 2021 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  18. ^ a b Heller, Martin (3 February 2023). "What is garbage collection? Automated memory management for your programs" . InfoWorld . Retrieved 21 June 2024 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  19. ^ Hertz, Matthew; Berger, Emery D. (2005). "Quantifying the Performance of Garbage Collection vs. Explicit Memory Management" (PDF) . Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications - OOPSLA '05 . pp. 313– 326. doi : 10.1145/1094811.1094836 . ISBN 1-59593031-0 . S2CID 6570650 . Archived (PDF) from the original on 2 April 2012 . Retrieved 15 March 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  20. ^ Huelsbergen, Lorenz; Winterbottom, Phil (1998). "Very concurrent mark-&-sweep garbage collection without fine-grain synchronization" (PDF) . Proceedings of the First International Symposium on Memory Management - ISMM '98 . pp. 166– 175. doi : 10.1145/286860.286878 . ISBN 1-58113114-3 . S2CID 14399427 . Archived (PDF) from the original on 13 May 2008. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  21. ^ "GC FAQ" . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  22. ^ "Objective-C 2.0 Overview" . Archived from the original on 24 July 2010. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  23. ^ a b Levanoni, Yossi; Petrank, Erez (2001). "An on-the-fly reference-counting garbage collector for java" . Proceedings of the 16th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications . OOPSLA 2001. pp. 367– 380. doi : 10.1145/504282.504309 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  24. ^ a b Levanoni, Yossi; Petrank, Erez (2006). "An on-the-fly reference-counting garbage collector for java" . ACM Trans. Program. Lang. Syst . 28 : 31– 69. doi : 10.1145/1111596.1111597 . S2CID 14777709 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  25. ^ Lieberman, Henry; Hewitt, Carl (1983). "A real-time garbage collector based on the lifetimes of objects" . Communications of the ACM . 26 (6): 419– 429. doi : 10.1145/358141.358147 . hdl : 1721.1/6335 . S2CID 14161480 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  26. ^ Little, Gary B. (1985). Inside the Apple IIc . Bowie, Md.: Brady Communications Co. p. 82. ISBN 0-89303-564-5 . Retrieved 29 June 2021 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  27. ^ "Altair 8800 Basic 4.1 Reference Manual" (PDF) . The Vintage Technology Digital Archive . April 1977. p. 108. Archived (PDF) from the original on 29 June 2021 . Retrieved 29 June 2021 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  28. ^ Microsoft (27 January 2009). "Reference Counting Garbage Collection" . Retrieved 29 March 2023 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  29. ^ "Overview – D Programming Language" . dlang.org . Digital Mars . Retrieved 29 July 2014 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  30. ^ Mazur, Nancy (May 2004). Compile-time garbage collection for the declarative language Mercury (PDF) (Thesis). Katholieke Universiteit Leuven . Archived (PDF) from the original on 27 April 2014. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  31. ^ McCarthy, John (1960). "Recursive functions of symbolic expressions and their computation by machine, Part I" . Communications of the ACM . 3 (4): 184– 195. doi : 10.1145/367177.367199 . S2CID 1489409 . Retrieved 29 May 2009 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  32. ^ McCloskey; Bacon; Cheng; Grove (2008), Staccato: A Parallel and Concurrent Real-time Compacting Garbage Collector for Multiprocessors (PDF) , archived (PDF) from the original on 11 March 2014 Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  33. ^ a b Napier, Rob; Kumar, Mugunth (20 November 2012). iOS 6 Programming Pushing the Limit . John Wiley & Sons. ISBN 978-1-11844997-4 . Retrieved 30 March 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  34. ^ "PHP: Performance Considerations" . php.net . Retrieved 14 January 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  35. ^ Pibinger, Roland (3 May 2005) [2005-04-17]. "RAII, Dynamic Objects, and Factories in C++" . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  36. ^ "Reference Counts" . Extending and Embedding the Python Interpreter . 21 February 2008 . Retrieved 22 May 2014 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  37. ^ Salagnac, Guillaume; Yovine, Sergio; Garbervetsky, Diego (24 May 2005). "Fast Escape Analysis for Region-based Memory Management" . Electronic Notes in Theoretical Computer Science . 131 : 99– 110. doi : 10.1016/j.entcs.2005.01.026 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  38. ^ "Hamster Emporium: [objc explain]: Non-pointer isa" . Sealiesoftware.com. 24 September 2013 . Retrieved 27 April 2014 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  39. ^ Silva, Precious (18 November 2014). "iOS 8 vs Android 5.0 Lollipop: Apple Kills Google with Memory Efficiency" . International Business Times . Archived from the original on 3 April 2015 . Retrieved 7 April 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  40. ^ Siracusa, John (20 July 2011). "Mac OS X 10.7 Lion: the Ars Technica review" . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  41. ^ Tene, Gil; Iyengar, Balaji; Wolf, Michael (2011). "C4: the continuously concurrent compacting collector" (PDF) . ISMM '11: Proceedings of the international symposium on Memory management . doi : 10.1145/1993478 . ISBN 978-1-45030263-0 . Archived (PDF) from the original on 9 August 2017. Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  42. ^ Worth, Don (1984). Beneath Apple Pro DOS (PDF) (March 1985 printing ed.). Chatsworth, California, US: Quality Software. pp. 2– 6. ISBN 0-912985-05-4 . Archived (PDF) from the original on 3 December 2008 . Retrieved 29 June 2021 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  43. ^ Zorn, Benjamin (22 January 1993). "The Measured Cost of Conservative Garbage Collection". Software: Practice and Experience . 23 (7). Department of Computer Science, University of Colorado Boulder : 733– 756. doi : 10.1002/spe.4380230704 . S2CID 16182444 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  44. ^ ".NET nanoFramework" . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  45. ^ a b "What is garbage collection (GC) in programming?" . Storage . Retrieved 21 June 2024 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
  46. ^ a b "Developer Tools Kickoff – session 300" (PDF) . WWDC 2011 . Apple, Inc. 24 June 2011. Archived from the original (PDF) on 4 September 2023 . Retrieved 27 March 2015 . Wikipedia revision 1373231348, retrieved 2026-11-19 · 1795042800.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Garbage collection (computer science)". 1788541311. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373231348

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·