Skip to content

Commit

Permalink
8214400: Update hotspot application/jcstress jtreg tests wrappers to …
Browse files Browse the repository at this point in the history
…use jcstress 0.5

Backport-of: bbfe9d2
  • Loading branch information
shipilev committed Feb 27, 2024
1 parent 6e296a0 commit 5045b54
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/hotspot/jtreg/applications/jcstress/JcstressRunner.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2018, 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 @@ -42,7 +42,7 @@
* jcstress tests wrapper
*/
@Artifact(organization = "org.openjdk.jcstress", name = "jcstress-tests-all",
revision = "0.3", extension = "jar", unpack = false)
revision = "0.5", extension = "jar", unpack = false)
public class JcstressRunner {

public static final String MAIN_CLASS = "org.openjdk.jcstress.Main";
Expand All @@ -55,7 +55,7 @@ public static Path pathToArtifact() {
throw new Error("TESTBUG: Can not resolve artifacts for "
+ JcstressRunner.class.getName(), e);
}
return artifacts.get("org.openjdk.jcstress.jcstress-tests-all-0.3")
return artifacts.get("org.openjdk.jcstress.jcstress-tests-all-0.5")
.toAbsolutePath();
}

Expand Down Expand Up @@ -115,4 +115,3 @@ private static String[] getCmd(String[] args) {
return result;
}
}

31 changes: 31 additions & 0 deletions test/hotspot/jtreg/applications/jcstress/threadlocal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 2017, 2018, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/

/* DO NOT MODIFY THIS FILE. GENERATED BY applications.jcstress.TestGenerator */

/**
* @test threadlocal
* @library /test/lib /
* @run driver/timeout=21600 applications.jcstress.JcstressRunner -v -t org.openjdk.jcstress.tests.threadlocal\.
*/

1 comment on commit 5045b54

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.