8146620: CodelistTest.java fails with "Test failed on: jdk.internal.misc.Unsafe.getUnsafe()Ljdk/internal/misc/Unsafe;"
Reviewed-by: sla
--- a/hotspot/test/serviceability/dcmd/compiler/CodelistTest.java Fri Jan 08 08:51:18 2016 -0800
+++ b/hotspot/test/serviceability/dcmd/compiler/CodelistTest.java Tue Jan 12 11:11:21 2016 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, 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
@@ -80,7 +80,8 @@
// int compileLevel = Integer.parseInt(parts[1]);
String methodPrintedInLogFormat = parts[2];
- // skip inits, clinits and methodHandles - they can not be reflected
+ // skip inits, clinits, methodHandles and getUnsafe -
+ // they can not be reflected
if (methodPrintedInLogFormat.contains("<init>")) {
continue;
}
@@ -93,6 +94,9 @@
if (methodPrintedInLogFormat.contains("sun.misc.Unsafe.getUnsafe")) {
continue;
}
+ if (methodPrintedInLogFormat.contains("jdk.internal.misc.Unsafe.getUnsafe")) {
+ continue;
+ }
MethodIdentifierParser mf = new MethodIdentifierParser(methodPrintedInLogFormat);
Method m = null;