RFR (XS): 8066497: Update c.o.j.t.ByteCodeLoader to be able really reload given class

Pavel Chistyakov pavel.chistyakov at oracle.com
Thu Dec 25 10:02:04 UTC 2014


Hi Igor, Filipp,

Thank you for review.

------------
Regards,
Pavel

On 25.12.2014 12:46, Igor Ignatyev wrote:
> Looks good to me.
>
> Igor
>
> On 12/09/2014 07:50 PM, Pavel Chistyakov wrote:
>> Hi all,
>>
>> please review changes for: 
>> https://bugs.openjdk.java.net/browse/JDK-8066497
>> webrev:
>> http://cr.openjdk.java.net/~iignatyev/pchistyakov/8066497/webrev.00/
>> <http://cr.openjdk.java.net/%7Eiignatyev/pchistyakov/8066497/webrev.00/>
>>
>> Problem:
>> ByteCodeLoader allows one to load class with given name from existing
>> bytecode. But if this class is already loaded by e.g. system classloader
>> it cannot be redefined using another bytecode array because of
>> delegation of loadClass call to parent classloader.
>>
>> Solution:
>> override loadClass to break delegation for given className.
>>
>> Testing: manual
>>
>> -------------------
>> Thanks,
>> Pavel



More information about the hotspot-compiler-dev mailing list