test/hotspot/gtest/runtime/test_globals.cpp
changeset 49902 3661f31c6df4
parent 49860 ca5216a2a2cc
child 58044 3277a7454dc5
--- a/test/hotspot/gtest/runtime/test_globals.cpp	Thu Apr 26 09:10:04 2018 -0700
+++ b/test/hotspot/gtest/runtime/test_globals.cpp	Thu Apr 26 11:19:05 2018 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -23,17 +23,18 @@
 
 #include "precompiled.hpp"
 #include "runtime/globals.hpp"
+#include "runtime/flags/flagSetting.hpp"
 #include "unittest.hpp"
 
-#define TEST_FLAG(f, type, value)                     \
-  do {                                                \
-    ASSERT_TRUE(Flag::find_flag(#f)->is_ ## type());  \
-    type original_value = f;                          \
-    {                                                 \
-      FLAG_GUARD(f);                                  \
-      f = value;                                      \
-    }                                                 \
-    ASSERT_EQ(original_value, f);                     \
+#define TEST_FLAG(f, type, value)                                \
+  do {                                                           \
+    ASSERT_TRUE(JVMFlag::find_flag(#f)->is_ ## type());          \
+    type original_value = f;                                     \
+    {                                                            \
+      FLAG_GUARD(f);                                             \
+      f = value;                                                 \
+    }                                                            \
+    ASSERT_EQ(original_value, f);                                \
   } while (0)
 
 TEST_VM(FlagGuard, bool_flag) {