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

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

XMLWordPrintable

      # 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;
              }
          }
      }

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

              Created:
              Updated:
              Resolved: