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

  • Home
  • SEARCH
  • 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 8318703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:04:08+00:00 2026-06-08T22:04:08+00:00

As a newly created object is allocated to new generation. Is it possible a

  • 0

As a newly created object is allocated to new generation. Is it possible a newly created object is allocated directly to an old or tenured generation ? if it is, then on which bases ?

  • 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-08T22:04:10+00:00Added an answer on June 8, 2026 at 10:04 pm

    See “Frequently Asked Questions about Garbage Collection in the HotspotTM JavaTM Virtual Machine“:

    Do objects ever get allocated directly into the old generation?

    In 1.4.1 there two situations where allocation may occur directly into
    the old generation.

    If an allocation fails in the young generation and the object is a
    large array that does not contain any references to objects, it can be
    allocated directly into the old generation. In some select instances,
    this strategy was intended to avoid a collection of the young
    generation by allocating from the old generation.

    There is a flag (available in 1.4.2 and later)
    l-XX:PretenureSizeThreshold= that can be set to limit the
    size of allocations in the young generation. Any allocation larger
    than this will not be attempted in the young generation and so will be
    allocated out of the old generation.

    The threshold size for 1) is 64k words. The default size for
    PretenureSizeThreshold is 0 which says that any size can be allocated
    in the young generation.

    In 1.4.2 case 1) the 64k word threshold continues to be true for the
    incremental collector (-Xincgc). For the default collector and the
    concurrent collector (-XX:+UseConcMarkSweepGC) the threshold value has
    been changed so that an attempt to allocate into the old generation
    only occurs if the size of the allocation is larger than the entire
    young generation (available space when it is empty). It was observed
    that there were cases where the 1.4.1 strategy for the default
    collector and concurrent collector were leading to full collections
    only (no young generation collections were being done). We deemed that
    bad enough to raise the threshold.

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

Sidebar

Related Questions

Possible Duplicate: PHP: How to chain method on a newly created object? I can
I would like to return the id of a newly created object for my
Is it bad javascript practice to not assign a newly created object to a
I'm trying to add results from an object to newly created HTML elements: *long
I'm trying to redirect a user to a newly created object's object.get_absolute_url() after saving
My question is what happens to the object allocated with the new operator that
Is there a way to pass a newly created object(not saved yet) to another
I want to update an instance with properties of a newly created object at
So I have a newly created Javascript object called EditableObject in my custom .js
PHP uses __construct() to set properties for a newly created object. From what I

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.