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

Rounding error that may distort computeNextGaussian results

XMLWordPrintable

    • b07
    • 22
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      As of https://github.com/openjdk/jdk/commit/f975be44a86879e1079a0066203b49d59b7a1167 , RandomSupport::computeNextExponentialSoftCapped may incorrectly round toward zero when calculating `maxExtraMinus1`. This can cause it to impose a smaller cap than was specified. The only public function affected is `computeNextGaussian`, where the condition on line 1402 may fail to ever be satisfied.

      REGRESSION : Last worked in version 21.0.2


      FREQUENCY : rarely


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: