changeset 47574:214c5a0bdea3

8189061: serviceability/sa/TestInstanceKlassSize.java - Unable to find instance klass for null Reviewed-by: jgeorge, dholmes
author sballal
date Tue, 24 Oct 2017 15:44:29 +0530
parents 1630ba56759d
children 75aa2a8e7304
files test/hotspot/jtreg/serviceability/sa/TestInstanceKlassSize.java
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/serviceability/sa/TestInstanceKlassSize.java	Wed Oct 25 08:37:41 2017 +0200
+++ b/test/hotspot/jtreg/serviceability/sa/TestInstanceKlassSize.java	Tue Oct 24 15:44:29 2017 +0530
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2017, 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
@@ -102,7 +102,6 @@
             String[] instanceKlassNames = new String[] {
                                               " java.lang.Object",
                                               " java.util.Vector",
-                                              " sun.util.PreHashedMap",
                                               " java.lang.String",
                                               " java.lang.Thread",
                                               " java.lang.Byte",
@@ -166,7 +165,7 @@
             InstanceKlass ik = SystemDictionaryHelper.findInstanceKlass(
                                SAInstanceKlassName);
             Asserts.assertNotNull(ik,
-                String.format("Unable to find instance klass for %s", ik));
+                String.format("Unable to find instance klass for %s", SAInstanceKlassName));
             System.out.println("SA: The size of " + SAInstanceKlassName +
                                " is " + ik.getSize());
         }
@@ -187,7 +186,6 @@
             String[] SAInstanceKlassNames = new String[] {
                                                 "java.lang.Object",
                                                 "java.util.Vector",
-                                                "sun.util.PreHashedMap",
                                                 "java.lang.String",
                                                 "java.lang.Thread",
                                                 "java.lang.Byte"