Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8251904: vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.jav…
…a fails with ClassNotFoundException: nsk.sysdict.share.BTree0LLRLRLRRLR

Reviewed-by: dholmes, lmesnik
  • Loading branch information
Harold Seigel committed Oct 26, 2021
1 parent 4be88d5 commit 7ca053d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Expand Up @@ -59,7 +59,7 @@ protected void parseArgs(String args[]) {
}
try {
// Load FatsInfo with URLClassLoader btree.jar & fats.jar should not
// present in classpath
// be present in classpath
Class info;
if (useFats) {
info = createJarLoader().loadClass(PACKAGE_PREFIX + "FatsInfo");
Expand All @@ -76,7 +76,7 @@ protected void parseArgs(String args[]) {
}

if (level >= height) {
throw new Failure("Icorrect level : " + level + " .Should be less then " + height);
throw new Failure("Incorrect level : " + level + " should be less than " + height);
}

// generate names for all nodes at the given level:
Expand Down
10 changes: 4 additions & 6 deletions test/hotspot/jtreg/vmTestbase/nsk/sysdict/share/SysDictTest.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 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
Expand Down Expand Up @@ -62,7 +62,7 @@ protected void parseArgs(String args[]) {
if (args[i].equals("-useSingleLoader")) {
this.useSingleLoader = false;
}
// jar path is in useal classpath format
// jar path is in usual classpath format
if (args[i].equals("-jarpath")) {
String[] files = args[i + 1].split(File.pathSeparator);
jars = new URL[files.length];
Expand Down Expand Up @@ -148,11 +148,8 @@ public void run() {
// set name into public variable just to be sure
// that class is loaded
tmp = clz.getName();
} catch (ClassNotFoundException cnfe) {
throw new TestFailure(cnfe);
} catch (OutOfMemoryError oome) {
} catch (OutOfMemoryError | ClassNotFoundException e) {
// just ignore
// we do not check memory leaks in PermGen in this tests
} catch (StackOverflowError soe) {
// just ignore, chains could be too large
// StackOverflowError could be in some sparcs
Expand All @@ -164,6 +161,7 @@ public void run() {
}
}


@Override
protected Runnable createRunnable(int i) {
currentClassLoaders = createClassLoadersInternal();
Expand Down

3 comments on commit 7ca053d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on 7ca053d Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 7ca053d Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin the backport was successfully created on the branch GoeLin-backport-7ca053de in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 7ca053de from the openjdk/jdk repository.

The commit being backported was authored by Harold Seigel on 26 Oct 2021 and was reviewed by David Holmes and Leonid Mesnik.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-7ca053de:GoeLin-backport-7ca053de
$ git checkout GoeLin-backport-7ca053de
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-7ca053de

Please sign in to comment.