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

Wrong initialized value of max_gc_pause_sec for an instance of class AdaptiveSizePolicy

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b20

      Backports

        Description

        in src/share/vm/memory/collectorPolicy.cpp
        a minor initialization bug in initializing an AdaptiveSizePolicy instance is caught.

         167 void GenCollectorPolicy::initialize_size_policy(size_t init_eden_size,
         168 size_t init_promo_size,
         169 size_t init_survivor_size) {
         170 const double max_gc_minor_pause_sec = ((double) MaxGCMinorPauseMillis)/1000.0;
         171 _size_policy = new AdaptiveSizePolicy(init_eden_size,
         172 init_promo_size,
         173 init_survivor_size,
         174 max_gc_minor_pause_sec,
         175 GCTimeRatio);
         176 }

        where MaxGCMinorPauseMillis should be MaxGCPauseMillis

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tamao Tao Mao (Inactive)
                  Reporter:
                  tamao Tao Mao (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: