Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8275662: remove test/lib/sun/hotspot #9434

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/cha/AbstractRootMethod.java
Expand Up @@ -63,7 +63,7 @@ public static void main(String[] args) {
run(AbstractInterface.class);

// Implementation limitation: CHA is not performed by C1 during inlining through MH linkers.
if (!sun.hotspot.code.Compiler.isC1Enabled()) {
if (!jdk.test.whitebox.code.Compiler.isC1Enabled()) {
run(AbstractClass.TestMH.class, AbstractClass.class);
run(AbstractInterface.TestMH.class, AbstractInterface.class);
}
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/cha/DefaultRootMethod.java
Expand Up @@ -63,7 +63,7 @@ public static void main(String[] args) {
run(InheritedDefault.class);

// Implementation limitation: CHA is not performed by C1 during inlining through MH linkers.
if (!sun.hotspot.code.Compiler.isC1Enabled()) {
if (!jdk.test.whitebox.code.Compiler.isC1Enabled()) {
run(DefaultRoot.TestMH.class, DefaultRoot.class);
run(InheritedDefault.TestMH.class, InheritedDefault.class);
}
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/cha/Utils.java
Expand Up @@ -27,7 +27,7 @@
import jdk.internal.org.objectweb.asm.MethodVisitor;
import jdk.internal.vm.annotation.DontInline;
import jdk.test.whitebox.WhiteBox;
import sun.hotspot.code.NMethod;
import jdk.test.whitebox.code.NMethod;

import java.io.IOException;
import java.lang.annotation.Retention;
Expand Down
Expand Up @@ -48,8 +48,8 @@

import jdk.test.lib.Asserts;
import jdk.test.whitebox.WhiteBox;
import sun.hotspot.code.BlobType;
import sun.hotspot.code.CodeBlob;
import jdk.test.whitebox.code.BlobType;
import jdk.test.whitebox.code.CodeBlob;

import java.lang.management.MemoryPoolMXBean;
import java.lang.reflect.Method;
Expand Down
Expand Up @@ -40,7 +40,7 @@
import jdk.test.lib.process.ExitCode;
import jdk.test.lib.Platform;
import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

public class TestSegmentedCodeCacheOption {
private static final String INT_MODE = "-Xint";
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 @@ -28,7 +28,7 @@
import jdk.test.lib.process.ExitCode;
import jdk.test.lib.Platform;
import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

/**
* Test case runner aimed to verify that NonNMethodCodeHeapSize smaller than
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 All @@ -26,7 +26,7 @@
import compiler.codecache.cli.common.CodeCacheCLITestCase;
import compiler.codecache.cli.common.CodeCacheOptions;
import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

/**
* Test case runner aimed to verify that all four options related to code cache
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 @@ -28,7 +28,7 @@
import jdk.test.lib.process.ExitCode;
import jdk.test.lib.Utils;
import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.Random;

Expand Down
Expand Up @@ -40,7 +40,7 @@
import compiler.codecache.cli.common.CodeCacheCLITestBase;
import compiler.codecache.cli.common.CodeCacheCLITestCase;
import jdk.test.lib.Platform;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.EnumSet;

Expand Down
Expand Up @@ -24,7 +24,7 @@

import jdk.test.lib.Platform;
import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.Collections;
import java.util.EnumSet;
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 All @@ -22,7 +22,7 @@
*/
package compiler.codecache.cli.common;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.Arrays;

Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 All @@ -23,7 +23,7 @@
package compiler.codecache.cli.common;

import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 @@ -28,7 +28,7 @@
import compiler.codecache.cli.common.CodeCacheOptions;
import jdk.test.lib.process.ExitCode;
import jdk.test.lib.cli.CommandLineOptionTest;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.EnumSet;
import java.util.stream.Collectors;
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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 @@ -38,7 +38,7 @@

import compiler.codecache.cli.common.CodeCacheCLITestBase;
import compiler.codecache.cli.common.CodeCacheCLITestCase;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.EnumSet;

Expand Down
Expand Up @@ -43,7 +43,7 @@
package compiler.codecache.jmx;

import jdk.test.lib.Asserts;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryType;

Expand Down
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/compiler/codecache/jmx/CodeCacheUtils.java
Expand Up @@ -26,8 +26,8 @@
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import jdk.test.whitebox.WhiteBox;
import sun.hotspot.code.BlobType;
import sun.hotspot.code.CodeBlob;
import jdk.test.whitebox.code.BlobType;
import jdk.test.whitebox.code.CodeBlob;

import javax.management.Notification;
import java.lang.management.MemoryPoolMXBean;
Expand Down
Expand Up @@ -43,7 +43,7 @@
package compiler.codecache.jmx;

import jdk.test.lib.Asserts;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.EnumSet;

Expand Down
Expand Up @@ -45,7 +45,7 @@
package compiler.codecache.jmx;

import jdk.test.lib.Asserts;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;
import java.util.HashMap;
Expand Down
Expand Up @@ -45,7 +45,7 @@
package compiler.codecache.jmx;

import jdk.test.lib.Asserts;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;
import java.util.ArrayList;
Expand Down
Expand Up @@ -43,7 +43,7 @@
package compiler.codecache.jmx;

import jdk.test.lib.Asserts;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;

Expand Down
Expand Up @@ -43,7 +43,7 @@
package compiler.codecache.jmx;

import jdk.test.lib.Asserts;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.ManagementFactory;
import java.lang.management.MemoryManagerMXBean;
Expand Down
Expand Up @@ -43,7 +43,7 @@

package compiler.codecache.jmx;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;

Expand Down
Expand Up @@ -44,7 +44,7 @@

import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import javax.management.ListenerNotFoundException;
import javax.management.Notification;
Expand Down
Expand Up @@ -44,7 +44,7 @@

import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import javax.management.ListenerNotFoundException;
import javax.management.Notification;
Expand Down
Expand Up @@ -45,7 +45,7 @@

package compiler.codecache.jmx;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;

Expand Down
Expand Up @@ -44,7 +44,7 @@

package compiler.codecache.jmx;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;

Expand Down
Expand Up @@ -45,7 +45,7 @@

package compiler.codecache.jmx;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.lang.management.MemoryPoolMXBean;

Expand Down
Expand Up @@ -45,7 +45,7 @@

package compiler.codecache.stress;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.ArrayList;
import java.util.Random;
Expand Down
Expand Up @@ -43,7 +43,7 @@

package compiler.codecache.stress;

import sun.hotspot.code.BlobType;
import jdk.test.whitebox.code.BlobType;

import java.util.ArrayList;

Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/codegen/aes/TestAESMain.java
Expand Up @@ -148,7 +148,7 @@
package compiler.codegen.aes;

import compiler.whitebox.CompilerWhiteBoxTest;
import sun.hotspot.code.Compiler;
import jdk.test.whitebox.code.Compiler;
import jtreg.SkippedException;

public class TestAESMain {
Expand Down
Expand Up @@ -47,7 +47,7 @@
import javax.crypto.spec.PBEKeySpec;

import compiler.whitebox.CompilerWhiteBoxTest;
import sun.hotspot.code.Compiler;
import jdk.test.whitebox.code.Compiler;
import jdk.test.lib.Utils;
import jtreg.SkippedException;

Expand Down
Expand Up @@ -51,7 +51,7 @@
import java.util.Arrays;

import compiler.whitebox.CompilerWhiteBoxTest;
import sun.hotspot.code.Compiler;
import jdk.test.whitebox.code.Compiler;
import jtreg.SkippedException;
import jdk.test.lib.Utils;

Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/intrinsics/bmi/TestAndnI.java
Expand Up @@ -38,7 +38,7 @@

package compiler.intrinsics.bmi;

import sun.hotspot.cpuinfo.CPUInfo;
import jdk.test.whitebox.cpuinfo.CPUInfo;

public class TestAndnI {

Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/intrinsics/bmi/TestAndnL.java
Expand Up @@ -40,7 +40,7 @@

package compiler.intrinsics.bmi;

import sun.hotspot.cpuinfo.CPUInfo;
import jdk.test.whitebox.cpuinfo.CPUInfo;

public class TestAndnL {

Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/intrinsics/bmi/TestBlsiI.java
Expand Up @@ -40,7 +40,7 @@

package compiler.intrinsics.bmi;

import sun.hotspot.cpuinfo.CPUInfo;
import jdk.test.whitebox.cpuinfo.CPUInfo;

public class TestBlsiI {

Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/intrinsics/bmi/TestBlsiL.java
Expand Up @@ -40,7 +40,7 @@

package compiler.intrinsics.bmi;

import sun.hotspot.cpuinfo.CPUInfo;
import jdk.test.whitebox.cpuinfo.CPUInfo;

public class TestBlsiL {

Expand Down
Expand Up @@ -40,7 +40,7 @@

package compiler.intrinsics.bmi;

import sun.hotspot.cpuinfo.CPUInfo;
import jdk.test.whitebox.cpuinfo.CPUInfo;

public class TestBlsmskI {

Expand Down
Expand Up @@ -40,7 +40,7 @@

package compiler.intrinsics.bmi;

import sun.hotspot.cpuinfo.CPUInfo;
import jdk.test.whitebox.cpuinfo.CPUInfo;

public class TestBlsmskL {

Expand Down