RFR: 8159890: SIGSEGV with UseStringDeduplication and UseSharedSpaces/RequireSharedSpaces

Thomas Schatzl thomas.schatzl at oracle.com
Wed Jun 22 16:11:30 UTC 2016


Hi,

On Wed, 2016-06-22 at 16:49 +0200, Per Liden wrote:
> Hi,
> 
> Summary: This was bug was introduced by JDK-8150607 - Clean up 
> CompactHashtable, where the rewrite of CompactHashtable::oops_do()
> by 
> mistake now iterates over entry[0] instead of entry[1] for regular 
> bucket types. This causes garbage (non-narrowOop) values to be passed
> to 
> the OopClosure passed to oops_do() and we crash. The bug is easy to 
> reproduce with:
> 
> $ java -Xshare:dump
> $ java -XX:+UseSharedSpaces -XX:+UseStringDeduplication -version
> 
> Webrev: http://cr.openjdk.java.net/~pliden/8159890/webrev.0/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8159890
> 

  looks good. Not really sure if this needs a regression test. It seems
to be too trivial and obvious a fix.

Thanks,
  Thomas


More information about the hotspot-runtime-dev mailing list