RFR: 8211956: AppCDS crashes for some uses with JRuby (original) (raw)
Ioi Lam ioi.lam at oracle.com
Mon Oct 15 03:47:31 UTC 2018
- Previous message: RFR: 8211956: AppCDS crashes for some uses with JRuby
- Next message: RFR: 8211956: AppCDS crashes for some uses with JRuby
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Jiangli,
Looks good. Maybe also add an assert on the region index inside verify_region_checksum()? No need to send new webrev.
Thanks
- Ioi
On 10/12/18 5:17 PM, Jiangli Zhou wrote:
Please review the following trivial fix in FileMapInfo::verifymappedheapregions:
webrev: http://cr.openjdk.java.net/~jiangli/8211956/webrev.00/ bug: https://bugs.openjdk.java.net/browse/JDK-8211956 This issue was reported by Charles Nutter when using AppCDS with Jruby. The failure happens when large number of classes (>7000) and java objects (mirror objects of archived classes) are archived. With 'oa1' (open archive heap space 1) also being used, the runtime crashes during mapping/validating the archive heap regions. FileMapInfo::verifymappedheapregions accesses beyond the end of archived space array and reads in garbage, which causes the crash. The fix is to make sure FileMapInfo::verifymappedheapregions only verifies 'num' of spaces. Thanks Charles for reporting the issue and Claes for forwarding. Also thanks Ioi for jumping in and helping investigation. I've also created a follow up RFE, JDK-8212149 for creating a stress test for archive heap regions with large number of archived heap objects. Verified the fix with jruby. Running tier1-tier5. Thanks, Jiangli
- Previous message: RFR: 8211956: AppCDS crashes for some uses with JRuby
- Next message: RFR: 8211956: AppCDS crashes for some uses with JRuby
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]