diff --git a/make/conf/docs-modules.conf b/make/conf/docs-modules.conf index 09b26eae9a1..e009deb85b3 100644 --- a/make/conf/docs-modules.conf +++ b/make/conf/docs-modules.conf @@ -42,6 +42,7 @@ DOCS_MODULES= \ jdk.hotspot.agent \ jdk.httpserver \ jdk.jpackage \ + jdk.incubator.concurrent \ jdk.incubator.vector \ jdk.jartool \ jdk.javadoc \ diff --git a/make/conf/module-loader-map.conf b/make/conf/module-loader-map.conf index f3e38bf9c28..186fd2b906e 100644 --- a/make/conf/module-loader-map.conf +++ b/make/conf/module-loader-map.conf @@ -1,5 +1,5 @@ # -# Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2014, 2022, 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 @@ -43,6 +43,7 @@ BOOT_MODULES= \ java.rmi \ java.security.sasl \ java.xml \ + jdk.incubator.concurrent \ jdk.incubator.vector \ jdk.internal.vm.ci \ jdk.jfr \ diff --git a/src/demo/share/java2d/J2DBench/src/j2dbench/Result.java b/src/demo/share/java2d/J2DBench/src/j2dbench/Result.java index e73e97f3b5e..1c34b901548 100644 --- a/src/demo/share/java2d/J2DBench/src/j2dbench/Result.java +++ b/src/demo/share/java2d/J2DBench/src/j2dbench/Result.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -40,11 +40,11 @@ package j2dbench; -import java.util.Vector; -import java.util.Hashtable; -import java.util.Enumeration; import java.io.PrintWriter; import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Vector; public class Result { public static final int RATE_UNKNOWN = 0; @@ -243,7 +243,7 @@ public static int parseUnit(String c) { int repsPerRun; int unitsPerRep; Vector times; - Hashtable modifiers; + LinkedHashMap modifiers; Throwable error; public Result(Test test) { @@ -277,7 +277,7 @@ public void setError(Throwable t) { this.error = t; } - public void setModifiers(Hashtable modifiers) { + public void setModifiers(LinkedHashMap modifiers) { this.modifiers = modifiers; } @@ -297,7 +297,7 @@ public long getUnitsPerRun() { return ((long) getRepsPerRun()) * ((long) getUnitsPerRep()); } - public Hashtable getModifiers() { + public LinkedHashMap getModifiers() { return modifiers; } @@ -423,11 +423,11 @@ public void summarize() { System.out.println(test+" averaged "+getAverageString()); } if (true) { - Enumeration enum_ = modifiers.keys(); + Iterator iter_ = modifiers.keySet().iterator(); System.out.print(" with"); String sep = " "; - while (enum_.hasMoreElements()) { - Modifier mod = (Modifier) enum_.nextElement(); + while (iter_.hasNext()) { + Modifier mod = (Modifier) iter_.next(); Object v = modifiers.get(mod); System.out.print(sep); System.out.print(mod.getAbbreviatedModifierDescription(v)); @@ -442,9 +442,9 @@ public void write(PrintWriter pw) { "num-reps=\""+getRepsPerRun()+"\" "+ "num-units=\""+getUnitsPerRep()+"\" "+ "name=\""+test.getTreeName()+"\">"); - Enumeration enum_ = modifiers.keys(); - while (enum_.hasMoreElements()) { - Modifier mod = (Modifier) enum_.nextElement(); + Iterator iter_ = modifiers.keySet().iterator(); + while (iter_.hasNext()) { + Modifier mod = (Modifier) iter_.next(); Object v = modifiers.get(mod); String val = mod.getModifierValueName(v); pw.println("