RFR: 8167333: Invalid source path info might be used when creating ClassFileStream after CFLH transforms a shared classes in some cases

Jiangli Zhou jiangli.zhou at Oracle.COM
Fri Oct 7 04:39:00 UTC 2016


Hi,

Please review the following fix for JDK-8167333 <https://bugs.openjdk.java.net/browse/JDK-8167333>:

  webrev: http://cr.openjdk.java.net/~jiangli/8167333/webrev.00/ <http://cr.openjdk.java.net/~jiangli/8167333/webrev.00/>

When a shared class is transformed by a JVMTI agent during initial loading (via CFLH), the VM creates a new ClassFileStream using the transformed class data. The source path info from the class’ associated SharedClassPathEntry is passed as the ‘source’ argument to ClassFileStream. However, some shared classes may not have an associated SharedClassPathEntry and the class_path_index is -1. The VM needs to detect such case and not passing an invalid source path info.

Tested with all existing class data sharing tests.

Thanks,
Jiangli 


More information about the hotspot-runtime-dev mailing list