|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -58,32 +58,30 @@ class TestDependencyContext {
|
58 | 58 | return ctx.has_stale_entries();
|
59 | 59 | }
|
60 | 60 |
|
61 |
| -#ifndef PRODUCT |
62 | 61 | static bool find_stale_entries(DependencyContext ctx) {
|
63 | 62 | return ctx.find_stale_entries();
|
64 | 63 | }
|
65 |
| -#endif |
66 | 64 | };
|
67 | 65 |
|
68 | 66 | static void test_remove_dependent_nmethod(int id, bool delete_immediately) {
|
69 | 67 | TestDependencyContext c;
|
70 | 68 | DependencyContext depContext = c.dependencies();
|
71 |
| - NOT_PRODUCT(ASSERT_FALSE(TestDependencyContext::find_stale_entries(depContext))); |
| 69 | + ASSERT_FALSE(TestDependencyContext::find_stale_entries(depContext)); |
72 | 70 | ASSERT_FALSE(TestDependencyContext::has_stale_entries(depContext));
|
73 | 71 |
|
74 | 72 | nmethod* nm = c._nmethods[id];
|
75 | 73 | depContext.remove_dependent_nmethod(nm, delete_immediately);
|
76 | 74 |
|
77 | 75 | if (!delete_immediately) {
|
78 |
| - NOT_PRODUCT(ASSERT_TRUE(TestDependencyContext::find_stale_entries(depContext))); |
| 76 | + ASSERT_TRUE(TestDependencyContext::find_stale_entries(depContext)); |
79 | 77 | ASSERT_TRUE(TestDependencyContext::has_stale_entries(depContext));
|
80 |
| - NOT_PRODUCT(ASSERT_TRUE(depContext.is_dependent_nmethod(nm))); |
| 78 | + ASSERT_TRUE(depContext.is_dependent_nmethod(nm)); |
81 | 79 | depContext.expunge_stale_entries();
|
82 | 80 | }
|
83 | 81 |
|
84 |
| - NOT_PRODUCT(ASSERT_FALSE(TestDependencyContext::find_stale_entries(depContext))); |
| 82 | + ASSERT_FALSE(TestDependencyContext::find_stale_entries(depContext)); |
85 | 83 | ASSERT_FALSE(TestDependencyContext::has_stale_entries(depContext));
|
86 |
| - NOT_PRODUCT(ASSERT_FALSE(depContext.is_dependent_nmethod(nm))); |
| 84 | + ASSERT_FALSE(depContext.is_dependent_nmethod(nm)); |
87 | 85 | }
|
88 | 86 |
|
89 | 87 | TEST_VM(code, dependency_context) {
|
|
0 commit comments