RFR: 8011760 assert(delta != 0) failed: dup pointer in MemBaseline::malloc_sort_by_addr

Zhengyu Gu zhengyu.gu at oracle.com
Mon Jul 8 10:23:21 PDT 2013


This is a simple fix to qsort's comparison function. The bug is related to libc version, it only happens on Linux 32 bit with certain versions of libc. The one I used to reproduce, is libc-2.11.1.so. 

Most of qsort algorithms do not compare element to itself, but apparently it is not the case with certain version of Linux 32 libc implementation.


JBS:   https://jbs.oracle.com/bugs/browse/JDK-8011760
Public bug: not available
Webrev:  http://cr.openjdk.java.net/~zgu/8011760/webrev.00/


Thanks,

-Zhengyu


More information about the hotspot-runtime-dev mailing list