Skip to content
Permalink
Browse files
8261161: Clean up warnings in hotspot/jtreg/vmTestbase tests
Reviewed-by: lfoltan, coleenp
  • Loading branch information
Harold Seigel committed Feb 8, 2021
1 parent 2c28e36 commit db0ca2b9d40963e19a1d9c169e42463a4c2c8a07
Showing with 747 additions and 745 deletions.
  1. +2 −2 test/hotspot/jtreg/vmTestbase/gc/gctests/JumbleGC/Tree.java
  2. +3 −3 test/hotspot/jtreg/vmTestbase/gc/gctests/PhantomReference/PhantomHelper.java
  3. +2 −2 ...reg/vmTestbase/gc/gctests/PhantomReference/PhantomReferenceEvilTest/PhantomReferenceEvilTest.java
  4. +2 −2 ...tspot/jtreg/vmTestbase/gc/gctests/PhantomReference/PhantomReferenceTest/PhantomReferenceTest.java
  5. +3 −3 test/hotspot/jtreg/vmTestbase/gc/gctests/ReferencesGC/ReferencesGC.java
  6. +5 −5 test/hotspot/jtreg/vmTestbase/gc/gctests/WeakReferenceGC/WeakReferenceGC.java
  7. +3 −3 test/hotspot/jtreg/vmTestbase/gc/gctests/gctest01/gctest01.java
  8. +2 −2 test/hotspot/jtreg/vmTestbase/gc/gctests/gctest02/gctest02.java
  9. +2 −2 test/hotspot/jtreg/vmTestbase/gc/gctests/gctest03/gctest03.java
  10. +2 −2 test/hotspot/jtreg/vmTestbase/gc/gctests/gctest04/gctest04.java
  11. +2 −2 test/hotspot/jtreg/vmTestbase/gc/hashcode/ExternalHashingTest/ExternalHashingTest.java
  12. +7 −7 test/hotspot/jtreg/vmTestbase/jit/FloatingPoint/FPCompare/TestFPBinop/TestFPBinop.java
  13. +3 −3 test/hotspot/jtreg/vmTestbase/jit/graph/test1.java
  14. +5 −5 test/hotspot/jtreg/vmTestbase/jit/graph/test2.java
  15. +6 −6 test/hotspot/jtreg/vmTestbase/jit/graph/test3.java
  16. +6 −6 test/hotspot/jtreg/vmTestbase/jit/graph/test4.java
  17. +9 −9 test/hotspot/jtreg/vmTestbase/jit/graph/test5.java
  18. +5 −5 test/hotspot/jtreg/vmTestbase/jit/graph/test6.java
  19. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdb/pop_exception/pop_exception001/pop_exception001a.java
  20. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdb/unwatch/unwatch001/unwatch001a.java
  21. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdb/unwatch/unwatch002/unwatch002a.java
  22. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdb/watch/watch001/watch001a.java
  23. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdb/watch/watch002/watch002a.java
  24. +11 −11 test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/isPackagePrivate/accipp001a.java
  25. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/isPrivate/isPrivate001a.java
  26. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/isProtected/isProtected001a.java
  27. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/isPublic/isPublic001a.java
  28. +8 −8 test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/modifiers/modifiers001a.java
  29. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValue/getvalue001.java
  30. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValue/getvalue002.java
  31. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues/getvalues001.java
  32. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues_ii/getvaluesii001.java
  33. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues_ii/getvaluesii002.java
  34. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues_ii/getvaluesii003.java
  35. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues_ii/getvaluesii004.java
  36. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/length/length001a.java
  37. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValue/setvalue001.java
  38. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValue/setvalue002.java
  39. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValues_ilii/setvaluesilii001.java
  40. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValues_ilii/setvaluesilii002.java
  41. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValues_l/setvaluesl001.java
  42. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValues_l/setvaluesl002.java
  43. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/ClassObjectReference/reflectedType/reflectype001a.java
  44. +11 −11 test/hotspot/jtreg/vmTestbase/nsk/jdi/ClassObjectReference/toString/tostring001a.java
  45. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/equals/equals001.java
  46. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/equals/equals001a.java
  47. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/equals/equals002a.java
  48. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/equals/equals003a.java
  49. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/equals/equals005a.java
  50. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/hashCode/hashcode001a.java
  51. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/isTransient/istrans001a.java
  52. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/isVolatile/isvol001a.java
  53. +15 −15 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/type/type002a.java
  54. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/typeName/typename001a.java
  55. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/LocalVariable/toString/tostring001a.java
  56. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Method/isBridge/isbridge001.java
  57. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Method/isObsolete/isobsolete003/newclass/isobsolete003b.java
  58. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/Method/isObsolete/isobsolete003b.java
  59. +15 −15 test/hotspot/jtreg/vmTestbase/nsk/jdi/ModificationWatchpointEvent/_itself_/mwevent001a.java
  60. +12 −12 test/hotspot/jtreg/vmTestbase/nsk/jdi/ModificationWatchpointEvent/valueToBe/valuetobe001a.java
  61. +12 −12 test/hotspot/jtreg/vmTestbase/nsk/jdi/ModificationWatchpointEvent/valueToBe/valuetobe002a.java
  62. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/allFields/allfields005t.java
  63. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/allLineLocations/alllinelocations002t.java
  64. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/allLineLocations_ss/alllinelocations_ss002t.java
  65. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/allMethods/allmethods005t.java
  66. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/classObject/classobj001a.java
  67. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/equals/equals001a.java
  68. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/fields/fields005t.java
  69. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/hashCode/hashcode001a.java
  70. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/isFinal/isfinal001a.java
  71. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/isStatic/isstatic001a.java
  72. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/locationsOfLine_i/locationsofline_i002t.java
  73. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/locationsOfLine_ssi/locationsofline_ssi002t.java
  74. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/methods/methods005t.java
  75. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/name/name001a.java
  76. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/sourceNames/sourcenames002t.java
  77. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/sourcePaths/sourcepaths002t.java
  78. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/visibleFields/visibfield005t.java
  79. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/visibleMethods/visibmethod006t.java
  80. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/declaringType/decltype001a.java
  81. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/declaringType/decltype002a.java
  82. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/declaringType/decltype003a.java
  83. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/declaringType/decltype007a.java
  84. +5 −5 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/declaringType/decltype008a.java
  85. +6 −6 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/isFinal/isfinal001a.java
  86. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/isFinal/isfinal003a.java
  87. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/isStatic/isstatic001a.java
  88. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/isStatic/isstatic003a.java
  89. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/isSynthetic/issynthetic001a.java
  90. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/name/name001a.java
  91. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/name/name003a.java
  92. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/signature/sign001a.java
  93. +15 −15 test/hotspot/jtreg/vmTestbase/nsk/jdi/WatchpointEvent/_itself_/wevent001a.java
  94. +15 −15 test/hotspot/jtreg/vmTestbase/nsk/jdi/WatchpointEvent/object/object001a.java
  95. +15 −15 test/hotspot/jtreg/vmTestbase/nsk/jdi/WatchpointEvent/valueCurrent/valuecur001a.java
  96. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdwp/ArrayReference/SetValues/setvalues001.java
  97. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdwp/ClassType/InvokeMethod/invokemeth001.java
  98. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdwp/ClassType/NewInstance/newinst001.java
  99. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdwp/ObjectReference/GetValues/getvalues001.java
  100. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jdwp/ObjectReference/InvokeMethod/invokemeth001.java
  101. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdwp/ReferenceType/GetValues/getvalues001.java
  102. +10 −10 test/hotspot/jtreg/vmTestbase/nsk/jdwp/StackFrame/GetValues/getvalues001.java
  103. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach001/attach001TestRunner.java
  104. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jvmti/PopFrame/popframe003p.java
  105. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass019/newclass_g/redefclass019a.java
  106. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/timers/JvmtiTest.java
  107. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/monitoring/MemoryUsage/from/from001.java
  108. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadInfo/from_c/from_c001.java
  109. +4 −4 test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/CustomMBeanServer.java
  110. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/Monitor.java
  111. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/ThreadMonitor.java
  112. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/server/ServerMXBean.java
  113. +5 −4 test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/cmon001.java
  114. +5 −4 test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace001.java
  115. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/share/TreeNodesDenotation.java
  116. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/share/aod/AODTestRunner.java
  117. +2 −2 test/hotspot/jtreg/vmTestbase/nsk/share/classload/GeneratingClassLoader.java
  118. +8 −8 test/hotspot/jtreg/vmTestbase/nsk/share/jdi/ValueConversionDebugger.java
  119. +7 −7 test/hotspot/jtreg/vmTestbase/nsk/share/jdwp/Debugee.java
  120. +11 −11 test/hotspot/jtreg/vmTestbase/nsk/share/jdwp/JDWP.java
  121. +24 −24 test/hotspot/jtreg/vmTestbase/nsk/share/jpda/ForceEarlyReturnTestThread.java
  122. +9 −9 test/hotspot/jtreg/vmTestbase/nsk/share/jpda/NativeMethodsTestThread.java
  123. +3 −3 test/hotspot/jtreg/vmTestbase/nsk/stress/except/except004.java
  124. +2 −2 test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/RandomValueGen.java
  125. +4 −4 test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/SimpleUnitTest.java
  126. +9 −9 test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/TestTypes.java
  127. +3 −3 test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/deoptimize/Test.java
  128. +4 −4 test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java
  129. +4 −4 test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/ClassFileGenerator.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -74,7 +74,7 @@ synchronized void addElement(int o) {
else
q.right = newnode;
elementCount++;
TreeValues.addElement(new Integer(o));
TreeValues.addElement(Integer.valueOf(o));
}


@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2021, 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
@@ -101,7 +101,7 @@ public static final String checkAllHashCodes(ReferenceQueue rq,
PRHelper prh = (PRHelper) rq.remove(1000);

if (prh != null) {
Integer ik = new Integer(prh.getReferentHashCode());
Integer ik = Integer.valueOf(prh.getReferentHashCode());
PhantomHelper ph = (PhantomHelper) hmHelper.get(ik);

if (ph != null) {
@@ -110,7 +110,7 @@ public static final String checkAllHashCodes(ReferenceQueue rq,
ph.decreaseHashCounter();
if (ph.getHashCounter() == 0) {
hmHelper.remove(
new Integer(prh.getReferentHashCode()));
Integer.valueOf(prh.getReferentHashCode()));
} else {
hmHelper.put(ik, ph);
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, 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
@@ -111,7 +111,7 @@ public final void run() {
byte[] tmp = new byte[allocationSize];

if (counter % keepEveryXthObject == 0) {
Integer ik = new Integer(tmp.hashCode());
Integer ik = Integer.valueOf(tmp.hashCode());
if (hmHelper.containsKey(ik)) {
PhantomHelper ph = (PhantomHelper) hmHelper.get(ik);
ph.increaseHashCounter();
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, 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
@@ -91,7 +91,7 @@ public final void run() {
int allocationSize = ((int) (rndGenerator.nextDouble()
* multiplier)) + minSize;
byte[] tmp = new byte[allocationSize];
Integer ik = new Integer(tmp.hashCode());
Integer ik = Integer.valueOf(tmp.hashCode());
if (hmHelper.containsKey(ik)) {
PhantomHelper ph = (PhantomHelper) hmHelper.get(ik);
ph.increaseHashCounter();
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -64,9 +64,9 @@ public static void main(String[] args) {
public static void parseArgs(String[] args) {
for (int i = 0; i < args.length; i++) {
if (args[i].compareTo("-range") == 0) {
RANGE = new Integer(args[++i]).intValue();
RANGE = Integer.valueOf(args[++i]).intValue();
} else if (args[i].compareTo("-ratio") == 0) {
RATIO = new Float(args[++i]).floatValue();
RATIO = Float.valueOf(args[++i]).floatValue();
}
}
REMOVE = (int) (RANGE * RATIO);
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -170,13 +170,13 @@ private boolean hasPassed() {
private void parseTestParams(String args[]) {
for (int i = 0; i < args.length; i++) {
if (args[i].compareTo("-numList") == 0) {
numLists = new Integer(args[++i]).intValue();
numLists = Integer.valueOf(args[++i]).intValue();
} else if (args[i].compareTo("-qFactor") == 0) {
qFactor = new Float(args[++i]).floatValue();
qFactor = Float.valueOf(args[++i]).floatValue();
} else if (args[i].compareTo("-gcCount") == 0) {
gcCount = new Integer(args[++i]).intValue();
gcCount = Integer.valueOf(args[++i]).intValue();
} else if (args[i].compareTo("-iter") == 0) {
loopCount = new Integer(args[++i]).intValue();
loopCount = Integer.valueOf(args[++i]).intValue();
// } else {
// System.err.println("usage : " +
// "java WeakReferenceGC [-numList <n>] " +
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -195,7 +195,7 @@ public void run() {

if (args.length > 0) {
try {
peopleLimit = new Integer(args[0]).intValue();
peopleLimit = Integer.valueOf(args[0]).intValue();
} catch (NumberFormatException e) {
log.info(usage);
throw new TestBug("Bad input to gctest01." +
@@ -205,7 +205,7 @@ public void run() {

if (args.length > 1 ) {
try {
LOOPCOUNT = new Integer(args[1]).intValue();
LOOPCOUNT = Integer.valueOf(args[1]).intValue();
} catch (NumberFormatException e) {
log.error(usage);
throw new TestBug("Bad input to gctest01." +
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -180,7 +180,7 @@ public static void main(String args[] ) {
{
try
{
peopleLimit = new Integer(args[0]).intValue();
peopleLimit = Integer.valueOf(args[0]).intValue();
}
catch (NumberFormatException e)
{
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -71,7 +71,7 @@ public void run() {

if (args.length > 0) {
try {
dataNodeLimit = new Integer(args[0]).intValue();
dataNodeLimit = Integer.valueOf(args[0]).intValue();
} catch (NumberFormatException e) {
throw new TestBug("Bad input to gctest03. Expected integer, " +
" got: ->" + args[0] + "<-", e);
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, 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
@@ -54,7 +54,7 @@ public static void main(String args[] )
{
try
{
queueLimit = new Integer(args[0]).intValue();
queueLimit = Integer.valueOf(args[0]).intValue();
}
catch (NumberFormatException e)
{
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, 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
@@ -239,7 +239,7 @@ private static void mungeObjects() {
for (int i = 0; i < BATCH_SIZE; i++) {
/* Add all of the results of this pass to the global list. */
allObjects.add(hashedList[i]);
allHashes.add(new Integer(foundHashes[i]));
allHashes.add(Integer.valueOf(foundHashes[i]));

/* Create even more garbage for the GC to find */
garbageMonger[i] = new Object();
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, 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
@@ -68,10 +68,10 @@
* from simplifying some of the expressions by using algebraic
* identities. */
static {
fOne = new Integer(1).floatValue();
fZero = new Integer(0).floatValue();
dOne = new Integer(1).doubleValue();
dZero = new Integer(0).doubleValue();
fOne = Integer.valueOf(1).floatValue();
fZero = Integer.valueOf(0).floatValue();
dOne = Integer.valueOf(1).doubleValue();
dZero = Integer.valueOf(0).doubleValue();
}

static final boolean DEBUG = false;
@@ -368,15 +368,15 @@ static double i(double x) {

static int index(float x) {
for (int i = 0; i < floatValues.length; i++) {
if (new Float(x).equals(new Float(floatValues[i])))
if (Float.valueOf(x).equals(Float.valueOf(floatValues[i])))
return i;
}
throw new TestFailure("ERROR: can't find " + x + " in floatValues.");
}

static int index(double x) {
for (int i = 0; i < doubleValues.length; i++) {
if (new Double(x).equals(new Double(doubleValues[i])))
if (Double.valueOf(x).equals(Double.valueOf(doubleValues[i])))
return i;
}
throw new TestFailure("ERROR: can't find " + x + " in doubleValues.");
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, 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
@@ -53,10 +53,10 @@ public void callMe(Vector summation, Vector ID, Long functionDepth, Integer stat

if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(classID);
} else {
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
methodCallStr = Globals.nextRandomMethod();
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, 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
@@ -52,12 +52,12 @@ public void CallCallMe(Vector summation, Vector ID, Long functionDepth, Integer
Integer staticFcalls;
if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(MethodID[1]);

Globals.addFunctionIDToVector(methodCallStr.id, ID);
} else {
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
Globals.addFunctionIDToVector(MethodID[0], ID);
callMe(summation, ID, numFcalls, staticFcalls);
@@ -94,11 +94,11 @@ public void callMe(Vector summation, Vector ID, Long functionDepth, Integer stat
Integer staticFcalls;
if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(MethodID[0]);

} else {
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
methodCallStr = Globals.nextRandomMethod();
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, 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
@@ -59,17 +59,17 @@ public void selfRecursion(Vector summation, Vector ID, Long functionDepth, Integ
// make a static call
if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(MethodID[1]);
} else if (localNumLoops > 0) { // make a recursive call
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
Globals.addFunctionIDToVector(MethodID[1], ID);
localNumLoops--;
selfRecursion(summation, ID, numFcalls, staticFcalls);
return;
} else { // make a random call
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
methodCallStr = Globals.nextRandomMethod();

@@ -101,10 +101,10 @@ public void callMe(Vector summation, Vector ID, Long functionDepth, Integer stat
Integer staticFcalls;
if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(MethodID[0]);
} else {
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
methodCallStr = Globals.nextRandomMethod();
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, 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
@@ -51,12 +51,12 @@ public void CallCallMe(Vector summation, Vector ID, Long functionDepth, Integer
Integer staticFcalls;
if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(MethodID[1]);

Globals.addFunctionIDToVector(methodCallStr.id, ID);
} else {
numFcalls = new Long(functionDepth.longValue() - 1);
numFcalls = Long.valueOf(functionDepth.longValue() - 1);
staticFcalls = staticFunctionDepth;
Globals.addFunctionIDToVector(MethodID[0], ID);
super.callMe(summation, ID, numFcalls, staticFcalls);
@@ -89,11 +89,11 @@ public void callMe(Vector summation, Vector ID, Long functionDepth, Integer stat
Integer staticFcalls;
if (staticFunctionDepth.intValue() > 0) {
numFcalls = functionDepth;
staticFcalls = new Integer(staticFunctionDepth.intValue() - 1);
staticFcalls = Integer.valueOf(staticFunctionDepth.intValue() - 1);
methodCallStr = Globals.returnNextStaticMethod(MethodID[2]);
} else {
long temp = functionDepth.longValue() - 2;
numFcalls = new Long(temp / 2);
numFcalls = Long.valueOf(temp / 2);
staticFcalls = staticFunctionDepth;

if (Globals.VERBOSE) {
@@ -117,7 +117,7 @@ public void callMe(Vector summation, Vector ID, Long functionDepth, Integer stat
if (Globals.VERBOSE) {
System.out.println(" test4.callMe - Starting Branch 2");
}
numFcalls = new Long(temp);
numFcalls = Long.valueOf(temp);
methodCallStr = Globals.nextRandomMethod();
}
Globals.addFunctionIDToVector(methodCallStr.id, ID);
Loading

0 comments on commit db0ca2b

Please sign in to comment.