Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6718151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:56:09+00:00 2026-05-26T08:56:09+00:00

Go is a garbage collected language: http://golang.org/doc/go_faq.html#garbage_collection Here it says that it’s a mark-and-sweep

  • 0

Go is a garbage collected language:

http://golang.org/doc/go_faq.html#garbage_collection

Here it says that it’s a mark-and-sweep garbage collector, but it doesn’t delve into details, and a replacement is in the works… yet, this paragraph seems not to have been updated much since Go was released.

It’s still mark-and-sweep? Is it conservative or precise? Is it generational?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:56:09+00:00Added an answer on May 26, 2026 at 8:56 am

    Plans for Go 1.4+ garbage collector:

    • hybrid stop-the-world/concurrent collector
    • stop-the-world part limited by a 10ms deadline
    • CPU cores dedicated to running the concurrent collector
    • tri-color mark-and-sweep algorithm
    • non-generational
    • non-compacting
    • fully precise
    • incurs a small cost if the program is moving pointers around
    • lower latency, but most likely also lower throughput, than Go 1.3 GC

    Go 1.3 garbage collector updates on top of Go 1.1:

    • concurrent sweep (results in smaller pause times)
    • fully precise

    Go 1.1 garbage collector:

    • mark-and-sweep (parallel implementation)
    • non-generational
    • non-compacting
    • mostly precise (except stack frames)
    • stop-the-world
    • bitmap-based representation
    • zero-cost when the program is not allocating memory (that is: shuffling pointers around is as fast as in C, although in practice this runs somewhat slower than C because the Go compiler is not as advanced as C compilers such as GCC)
    • supports finalizers on objects
    • there is no support for weak references

    Go 1.0 garbage collector:

    • same as Go 1.1, but instead of being mostly precise the garbage collector is conservative. The conservative GC is able to ignore objects such as []byte.

    Replacing the GC with a different one is controversial, for example:

    • except for very large heaps, it is unclear whether a generational GC would be faster overall
    • package “unsafe” makes it hard to implement fully precise GC and compacting GC
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The documentation for +[NSThread detachNewThreadSelector:toTarget:withObject:] says: For non garbage-collected applications, the method aSelector is
Is it possible for a Non-Interpreted language to have a Garbage collector. Interpreted languages
When a classloader is garbage collected, are the classes loaded by it unloaded? When
It's assured that Garbage Collector destroys all the unwanted and unused objects, what if
I found this article here: Quantifying the Performance of Garbage Collection vs. Explicit Memory
If I have a garbage collector that tracks every object allocated and deallocates them
I am looking for a programming language that is fast like C and C++
In Java, a weak reference is garbage collected if memory out. In Linux, malloc()
I've become very comfortable in the world of pointer-free, garbage-collected programming languages. Now I
Are there any good, portable, open-source, high-level, statically-typed, imperative, object-oriented, garbage collected, safe languages/runtimes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.