RFR: JDK-8157453 - Convert DependencyContext_test to GTest
Kirill Zhaldybin
kirill.zhaldybin at oracle.com
Mon Aug 29 19:32:52 UTC 2016
Jesper,
As far as I understand test_dependencyContext could be run in both
product and debug.
But in the class DependencyContext
148 #ifndef PRODUCT
149 void print_dependent_nmethods(bool verbose);
150 bool is_dependent_nmethod(nmethod* nm);
151 bool find_stale_entries();
152 #endif //PRODUCT
so is_dependent_nmethod and find_stale_entries are compiled only in
non-product configs but they are used in test_dependencyContext
Have you tried to build VM and run this test in product config?
http://cr.openjdk.java.net/~jwilhelm/8157453/webrev.00/test/native/code/test_dependencyContext.cpp.html
86 TEST(code, dependency_context) {
According to "almost existing naming convention" the test should be
named (<Tested Class>, <Test Case>).
Thank you.
Regards, Kirill
On 25.08.2016 20:53, Jesper Wilhelmsson wrote:
> Hi,
>
> Please review this test conversion of the DependencyContext tests to
> GTest.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8157453
> Webrev: http://cr.openjdk.java.net/~jwilhelm/8157453/webrev.00/
>
> Thanks,
> /Jesper
More information about the hotspot-dev
mailing list