Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366155

Serial: Obsolete PretenureSizeThreshold

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      This flag controls the maximum size of an object that is allowed to be allocated in eden-space of the young generation. The rational is that large objs should be allocated in old-gen directly to avoid the promotion overhead. This flag is exclusively used by Serial GC.

      The default value of this flag is zero, which means any objs can be allocated in eden-space if there is free space. In other words, in the default case, this flag is a no-op.

      However, figuring out the right value for this flag is often difficult, because it requires deep insight into the app allocation behavior. Additionally, certain large objs can be short-lived, but directly allocating them in old-gen means young-gc can't reclaim them any more.

      Remove this flag to let GC decide whether an object should be directly allocated in old-gen or not.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: