RFR: 8218812: vmTestbase/nsk/jvmti/GetAllThreads/allthr001/TestDescription.java failed
dean.long at oracle.com
dean.long at oracle.com
Thu Mar 7 20:19:28 UTC 2019
There are other places where is_hidden_from_external_view() is used.
Should is_hidden_from_external_view() also check the new capability? If
so, then you can simplify your changes. I'm not sure the new capability
is the best choice, however. There is still no way to control whether
compiler threads can post events, hit breakpoints, single-step, etc.
And "compiler thread" might be too specific. There might be other types
of "system thread" that we want to ignore. Since this is a JVMTI spec
change, I think it deserves more discussion. For example, an
alternative would be a way to set "can debug"/"visible"/"can post
events"/etc flags on individual threads.
dl
On 3/7/19 9:54 AM, Daniil Titov wrote:
>
> Please review a change that fixes this test.
>
> The problem here is that the test checks the number of threads and
> with Graal on additional threads the test doesn't expect are started
> and cause the test fail.
>
> The fix introduces a new capability " can_show_compiler_threads" that
> affects whether Java compiler threads are retuned with JVMTI
> GetAllThreads call. By default this capability is off. The fix also
> adds " HotSpotGraalManagement Bean Registration" thread to the list of
> the threads the tests must ignore.
>
> Webrev: http://cr.openjdk.java.net/~dtitov/8218812/webrev.01
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8218812
>
> Mach5 tier1, tier2 and tier3 tests successfully passed with this change.
>
> Thanks!
>
> -Daniil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190307/ec6f6f4b/attachment.html>
More information about the serviceability-dev
mailing list