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 8687769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:11:41+00:00 2026-06-12T23:11:41+00:00

In other words: I need to know if after calling System.gc() object instances (that

  • 0

In other words:

I need to know if after calling System.gc() object instances (that are not collected) are distributed between generations in the same way as before calling System.gc().

Thanks,

  • 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-06-12T23:11:42+00:00Added an answer on June 12, 2026 at 11:11 pm

    After a Full GC, which a System.gc() may or may not trigger,

    • the Eden space will be empty, so anything in there will be moved out or cleaned up.
    • the Survivor spaces will swap objects from the one which has objects to the empty one, and
    • the Tenured space will have the same retained objects it had before but some may have been cleaned up and some may be new to that generation.

    In short, the only time System.gc() won’t change objects between generations is when

    • it doesn’t do anything because it is ignored
    • no objects have been created or discarded since the last Full GC.

    if this could be another reason why calling System.gc() is evil

    Mostly because it hurts performance and you gain very little in return. Note: the RMI can trigger a full collection periodically to ensure distributed objects are cleaned up but it tries to keep this to a minimum.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In other words, can I do something with a volatile variable that could not
In other words what's the difference between onclick=myFunction() and onclick=JavaScript:myFunction()
Or, in other words, how to make this work: function foo(){} //do something that
I know of at least two byte-code enhancer that modify the object model at
After my previous question I heve this one, that might be better. I need
I know this works very well: def locations(city, *other_cities): print(city, other_cities) Now I need
In other words, if it returns 200, print True. Else, False. How can I
In other words, given a base class shape and a derived class rectangle :
In other words, I have a string like: anything, escaped double-quotes: \, yep anything
In other words, if I fill two unordered_map , or unordered_set , objects with

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.