RFR: JDK-8147634 - Need a JImage API that given a JImageLocationRef returns class name
Jim Laskey (Oracle)
james.laskey at oracle.com
Fri Apr 22 13:38:12 UTC 2016
Not reliably. I can do a range check but I can’t test that the offset is correct (preceeding zero byte isn’t sufficient.) The alternative is to switch to using indices instead of offsets for JImageLocationRef (as I mentioned should have ben done.) Take a bit of fiddling at this point, but doable. One would assume that you would guarantee on the result (shut down the vm), since that would mean a fail of the verification data (same as if jimage were invalid.)
— Jim
> On Apr 22, 2016, at 10:21 AM, harold seigel <harold.seigel at oracle.com> wrote:
>
> Hi Jim,
>
> Can you change JIMAGE_ResourcePath() to return a bad status if it is called with bogus input, such as a bad value for the JImageLocationRef?
>
> Thanks, Harold
>
> On 4/22/2016 9:12 AM, Jim Laskey (Oracle) wrote:
>> Implemented as requested by the runtime team.
>>
>> http://cr.openjdk.java.net/~jlaskey/8147634/webrev/index.html <http://cr.openjdk.java.net/~jlaskey/8147634/webrev/index.html>
>> https://bugs.openjdk.java.net/browse/JDK-8147634 <https://bugs.openjdk.java.net/browse/JDK-8147634>
>>
>
More information about the hotspot-runtime-dev
mailing list