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

64bit: Xincgc -version asserts: sizeof(pi) == sizeof(jint) || high(pi) == -1, "H

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • hotspot
    • gc
    • x86
    • linux



      Name: ks84122 Date: 05/21/2003


      Reproducible with the latest mantis build (23) on RH AS 2.1

      ###@###.### 2003-05-21

      ====== description from HP:

      On a Linux-ia64 box, try:
      java_g -Xincgc -version

      bash-2.05$ ./jdk1.4.2_b22/bin/java_g -Xincgc -version
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/cartable.hpp:89
      #
      # HotSpot Virtual Machine Error, assertion failure
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.4.2-rc-b22-debug mixed mode)
      #
      # assert(sizeof(pi) == sizeof(jint) || high(pi) == -1, "High word must be all ones")
      #
      # Error ID: /BUILD_AREA/jdk1.4.2/hotspot/src/share/vm/memory/cartable.hpp, 89
      #
      # Problematic Thread: prio=1 tid=0x600000000001ea88 nid=0x4748 runnable
      #

      Heap at VM Abort:
      Heap
       def new generation total 1984K, used 0K [0x2000000045360000, 0x2000000045580000, 0x2000000045580000)
        eden space 1792K, 0% used [0x2000000045360000, 0x2000000045360000, 0x2000000045520000)
        from space 192K, 0% used [0x2000000045520000, 0x2000000045520000, 0x2000000045550000)
        to space 192K, 0% used [0x2000000045550000, 0x2000000045550000, 0x2000000045580000)



      ****************
      Another exception has been detected while we were handling last error.
      Dumping information about last error:
      ERROR REPORT FILE = (N/A)
      PC = 0x2000000000e6fac1
      SIGNAL = 11
      FUNCTION NAME = print_on__C16GenCollectedHeapP12outputStream
      OFFSET = 0x111
      LIBRARY NAME = (N/A)
      Please check ERROR REPORT FILE for further information, if there is any.
      Good bye.
      Current thread is 0x400
      Dumping core ...


      In cartable.hpp:

        int get_index(const void* p) const {
          uintptr_t pi = (uintptr_t)p;
          assert((pi & ((1 << LogOfCarSpaceSize)-1)) == 0,
                 "boundary pointer must be valid for CarTable");
          assert(sizeof(pi) == sizeof(jint) || high(pi) == -1,
                 "High word must be all ones");
          return get_index_work(p);
        }

      for 64-bit sizeof(pi) is not sizeof(jint), but high(pi) is not -1 on all platforms. So we hit this assert (on HPUX and Linux).



      (Review ID: 185818)
      ======================================================================

            rknippelsunw Ross Knippel (Inactive)
            ksoshals Kirill Soshalskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: