-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b23
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8292577 | 17.0.6-oracle | Adithya Haradi Gopal | P4 | Resolved | Fixed | b01 |
JDK-8294499 | 17.0.6 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
test/micro/org/openjdk/bench/vm/gc/Alloc.java
38 public class Alloc {
39
40 public static final int LENGTH = 400;
41 public static final int ARR_LEN = 100;
42 public int largeLen = 100;
43 public int smalllen = 6;
...
54 @Benchmark
55 public void testLargeVariableArray(Blackhole bh) throws Exception {
56 int localArrlen = largeLen;
57 for (int i = 0; i < LENGTH; i++) {
58 Object[] tmp = new Object[localArrlen];
59 bh.consume(tmp);
60 }
61 }
62
63 @Benchmark
64 public void testSmallConstArray(Blackhole bh) throws Exception {
65 int localArrlen = largeLen;
66 for (int i = 0; i < LENGTH; i++) {
67 Object[] tmp = new Object[localArrlen];
68 bh.consume(tmp);
69 }
70 }
testLargeVariableArray and testSmallConstArray are the same, the localArrlen of testSmallConstArray should be small and const.
38 public class Alloc {
39
40 public static final int LENGTH = 400;
41 public static final int ARR_LEN = 100;
42 public int largeLen = 100;
43 public int smalllen = 6;
...
54 @Benchmark
55 public void testLargeVariableArray(Blackhole bh) throws Exception {
56 int localArrlen = largeLen;
57 for (int i = 0; i < LENGTH; i++) {
58 Object[] tmp = new Object[localArrlen];
59 bh.consume(tmp);
60 }
61 }
62
63 @Benchmark
64 public void testSmallConstArray(Blackhole bh) throws Exception {
65 int localArrlen = largeLen;
66 for (int i = 0; i < LENGTH; i++) {
67 Object[] tmp = new Object[localArrlen];
68 bh.consume(tmp);
69 }
70 }
testLargeVariableArray and testSmallConstArray are the same, the localArrlen of testSmallConstArray should be small and const.
- backported by
-
JDK-8292577 The array length of testSmallConstArray should be small and const
-
- Resolved
-
-
JDK-8294499 The array length of testSmallConstArray should be small and const
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/152ad788
-
Commit openjdk/jdk/d65fba41
-
Review openjdk/jdk17u-dev/735
-
Review openjdk/jdk/8621
(1 links to)