mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 17:08:53 +00:00
8321818: vmTestbase/nsk/stress/strace/strace015.java failed with 'Cannot read the array length because "<local4>" is null'
Reviewed-by: lmesnik, mli
This commit is contained in:
parent
c0f0b8e5f4
commit
ea50c54a14
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -125,6 +125,11 @@ public class strace007 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 2) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -129,6 +129,11 @@ public class strace008 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 4) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -129,6 +129,11 @@ public class strace009 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 2) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -145,6 +145,11 @@ public class strace010 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 2) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -149,6 +149,11 @@ public class strace011 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 2) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -151,6 +151,11 @@ public class strace012 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 2) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -130,6 +130,11 @@ public class strace013 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 3) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -140,6 +140,11 @@ public class strace014 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 4) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
@ -138,6 +138,11 @@ public class strace015 extends StraceBase {
|
||||
StackTraceElement[] all;
|
||||
for (int i = 1; i < THRD_COUNT; i++) {
|
||||
all = traces.get(threads[i]);
|
||||
if (all == null) {
|
||||
complain("No stacktrace for thread " + threads[i].getName() +
|
||||
" was found in the set of all traces");
|
||||
return false;
|
||||
}
|
||||
int k = all.length;
|
||||
if (count - k > 3) {
|
||||
complain("wrong lengths of stack traces:\n\t"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user