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

Default classlist in JDK is not deterministic after JDK-8293980

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • None
    • b04

      The classlist generation during the JDK build is non deterministic. This makes the build not reproducible. We have observed two different outputs from what should be equivalent builds. See log from compare.sh:

      ./lib/classlist (diff size 965)
      SHOW DIFF (first 500 lines): C:/sb/prod/171877~1/WORKSP~1/build/WINDOW~1/COMPAR~1/jdk/./lib/classlist.diff
      --- /cygdrive/c/sb/prod/1718778423/workspace/build/windows-x64-cmp-baseline/images/jdk/./lib/classlist 2024-06-19 06:46:53.038604600 +0000
      +++ /cygdrive/c/sb/prod/1718778423/workspace/build/compare-build/windows-x64-cmp-baseline/images/jdk/./lib/classlist 2024-06-19 07:11:15.822427300 +0000
      @@ -1915,7 +1915,7 @@
      @cp java/util/Arrays$ArrayList 2 8 15 16 53
      @cp java/util/Arrays$LegacyMergeSort 7 15 20 27 41
      @cp java/util/BitSet 1 3 7 11 22 24 183 287 292
      -@cp java/util/Calendar 1 4 16 25 30 34 37 41 44 48 52 55 99 102 123 171 183 194 200 204 207 210 256 268 333 358 370 373 472 477 580
      +@cp java/util/Calendar 1 4 16 25 30 34 37 41 44 48 52 55 99 102 123 171 183 194 200 204 207 256 268 333 358 370 373 472 477 580
      @cp java/util/Calendar$Builder 1 4 9 10 15 22 26 75 82 113 119 127 134 167
      @cp java/util/Collection 10 55
      @cp java/util/Collections 8 13 19 120 180 182 212 215 221 256 278 343 344 354 355 360 368 372 380 384 393 442 469 491 494 497

            iklam Ioi Lam
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: