RFR(xs): 8225219: [TESTBUG] AppCDS tests timed out with -Xcomp and --limit-modules option won't work with Graal
Igor Ignatyev
igor.ignatyev at oracle.com
Thu Dec 5 20:10:50 UTC 2019
Hi Calvin,
WhiteBoxPermission has to be placed in BCP, otherwise execution w/ java security manager will fail even if security policy allows WhiteBox, b/c s.h.WhiteBox won't be able to create s.h.WB.WhiteBoxPermission instance in getWhiteBox() at L#60 and test will fail w/ NCDFE. And, although I can't recall why, there were test runs w/ enabled security manager, which forced us to copy WhiteBoxPermission to current directory.
Thanks,
-- Igor
> On Dec 4, 2019, at 1:10 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
>
> CCing Igor I. who asked me in the past to add WhiteBoxPermission.
> The rest looks good to me.
>
> Vladimir
>
> On 12/4/19 1:06 PM, Calvin Cheung wrote:
>> Hi Vladimir,
>> Thanks for your review!
>> On 12/4/19 11:36 AM, Vladimir Kozlov wrote:
>>> I think you need also install WhiteBoxPermission:
>>>
>>> * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
>> Actually, the test runs fine without the WhiteBoxPermission. I know that some tests include it but I'm not sure why.
>>>
>>> an you don't need import WB if you not using its classes:
>>>
>>> import sun.hotspot.WhiteBox;
>> You're right. I've removed it in the updated webrev:
>> http://cr.openjdk.java.net/~ccheung/8225219/webrev.01/
>> thanks,
>> Calvin
>>>
>>> Thanks,
>>> Vladimir
>>>
>>> On 12/4/19 10:20 AM, Calvin Cheung wrote:
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8225219
>>>>
>>>> webrev: http://cr.openjdk.java.net/~ccheung/8225219/webrev.00/
>>>>
>>>> This change includes:
>>>>
>>>> 1. increase the timeout value so that the tests won't timeout with the -Xcomp option;
>>>>
>>>> 2. exclude the test scenarios which use the --limit-modules option from running if Graal is enabled.
>>>>
>>>> Tested locally on linux-x64 and passed tier1/2.
>>>>
>>>> thanks,
>>>>
>>>> Calvin
>>>>
>>>>
More information about the hotspot-runtime-dev
mailing list