changeset 51102:76ffdd60d5bc

8195156: [Graal] serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java fails with Graal in Xcomp mode Reviewed-by: kvn, sspitsyn
author epavlova
date Thu, 26 Jul 2018 10:23:33 -0700
parents 38cbdf8f383f
children d64013e38c11
files test/hotspot/jtreg/ProblemList-graal.txt test/hotspot/jtreg/serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/ProblemList-graal.txt	Thu Jul 26 13:08:42 2018 -0400
+++ b/test/hotspot/jtreg/ProblemList-graal.txt	Thu Jul 26 10:23:33 2018 -0700
@@ -69,8 +69,6 @@
 
 gc/TestNUMAPageSize.java                                        8194949   generic-all
 
-serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java 8195156   generic-all
-
 compiler/compilercontrol/directives/LogTest.java                8181753   generic-all
 
 gc/g1/ihop/TestIHOPStatic.java                                  8199486   generic-all
--- a/test/hotspot/jtreg/serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java	Thu Jul 26 13:08:42 2018 -0400
+++ b/test/hotspot/jtreg/serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java	Thu Jul 26 10:23:33 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, 2017, 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
@@ -69,6 +69,10 @@
         // to be equal to what Java reports
         modules.removeIf(mod -> !mod.isNamed());
 
+        // jdk.proxy1 and jdk.proxy2 modules are dynamically initialized by Graal code in case Graal VM is used.
+        // We need to filter them out because they are not part of boot modules. See more details in JDK-8195156.
+        modules.removeIf(mod -> mod.getName().startsWith("jdk.proxy"));
+
         return modules;
     }