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

[lworld] assert(size_in_words <= (julong)max_jint) failed: no overflow

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      # Internal Error (open/src/hotspot/share/oops/valueArrayOop.hpp:57), pid=19156, tid=19157
      # assert(size_in_words <= (julong)max_jint) failed: no overflow


      @SuppressWarnings("unchecked")
      public class BugOpt3 {

          public static void main(String[] args) {
              BNode<Integer, Integer>[] table = new BNode[0x3fff_ffff];
          }

          /**
           * Basic hash bin node.
           */
          static inline class BNode<K,V> {
              final K key;
              final V value;
              final int hash;

              BNode(K key, V value) {
                  this.key = key;
                  this.value = value;
                  this.hash = 0;
              }
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsimms David Simms
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: