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

Igor Ignatyev igor.ignatyev at oracle.com
Thu Dec 25 09:46:28 UTC 2014


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