Skip to content

Commit 2664863

Browse files
committed
8332252: Clean up vmTestbase/vm/share
Backport-of: a81e1bf
1 parent e225254 commit 2664863

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+74
-1642
lines changed

test/hotspot/jtreg/vmTestbase/gc/gctests/LoadUnloadGC/LoadUnloadGC.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -71,12 +71,8 @@
7171

7272
package gc.gctests.LoadUnloadGC;
7373

74-
import nsk.share.test.*;
7574
import nsk.share.gc.*;
7675
import nsk.share.classload.ClassPathNonDelegatingClassLoader;
77-
import vm.share.monitoring.MemoryPoolFinder;
78-
79-
import java.io.*;
8076
import java.util.*;
8177
import java.lang.management.MemoryPoolMXBean;
8278

test/hotspot/jtreg/vmTestbase/vm/share/monitoring/MemoryPoolFinder.java renamed to test/hotspot/jtreg/vmTestbase/gc/gctests/LoadUnloadGC/MemoryPoolFinder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -20,11 +20,11 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
package vm.share.monitoring;
23+
package gc.gctests.LoadUnloadGC;
2424

2525
import java.lang.management.*;
2626

27-
public enum MemoryPoolFinder {
27+
enum MemoryPoolFinder {
2828
CODE_CACHE,
2929
EDEN_SPACE,
3030
SURVIVOR_SPACE,

test/hotspot/jtreg/vmTestbase/metaspace/gc/HighWaterMarkTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,6 @@
2424
package metaspace.gc;
2525

2626
import java.util.Arrays;
27-
import vm.share.VMRuntimeEnvUtils;
2827

2928
/**
3029
* Test metaspace ergonomic.

test/hotspot/jtreg/vmTestbase/vm/share/gc/HeapOOMEException.java renamed to test/hotspot/jtreg/vmTestbase/metaspace/share/HeapOOMEException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
package vm.share.gc;
23+
package metaspace.share;
2424

2525
/**
2626
* This class is used to distinguish between OOME in metaspace and OOME in heap when triggering class unloading.

test/hotspot/jtreg/vmTestbase/vm/share/gc/TriggerUnloadingByFillingMetaspace.java renamed to test/hotspot/jtreg/vmTestbase/metaspace/share/TriggerUnloadingByFillingMetaspace.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
package vm.share.gc;
23+
package metaspace.share;
2424

2525
import nsk.share.test.ExecutionController;
2626
import nsk.share.gc.gp.classload.GeneratedClassProducer;

test/hotspot/jtreg/vmTestbase/vm/share/gc/TriggerUnloadingHelper.java renamed to test/hotspot/jtreg/vmTestbase/metaspace/share/TriggerUnloadingHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
package vm.share.gc;
23+
package metaspace.share;
2424

2525
import nsk.share.test.ExecutionController;
2626

test/hotspot/jtreg/vmTestbase/vm/share/gc/TriggerUnloadingWithWhiteBox.java renamed to test/hotspot/jtreg/vmTestbase/metaspace/share/TriggerUnloadingWithWhiteBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
package vm.share.gc;
23+
package metaspace.share;
2424

2525

2626
import jdk.test.whitebox.WhiteBox;

test/hotspot/jtreg/vmTestbase/metaspace/staticReferences/StaticReferences.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -53,14 +53,14 @@
5353
import java.util.Map;
5454
import java.util.Random;
5555

56-
import vm.share.InMemoryJavaCompiler;
56+
import metaspace.share.TriggerUnloadingHelper;
57+
import metaspace.share.TriggerUnloadingWithWhiteBox;
5758
import nsk.share.gc.GCTestBase;
5859
import nsk.share.test.ExecutionController;
5960
import nsk.share.test.Stresser;
6061
import nsk.share.test.TestBase;
6162
import nsk.share.test.Tests;
62-
import vm.share.gc.TriggerUnloadingHelper;
63-
import vm.share.gc.TriggerUnloadingWithWhiteBox;
63+
import vm.share.InMemoryJavaCompiler;
6464

6565
/**
6666
* Test checks that static fields will be initialized in new loaded class. Test performs in loop the following routine:

test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/common/PerformChecksHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,13 +28,13 @@
2828
import java.lang.reflect.Proxy;
2929
import java.util.List;
3030

31+
import jdk.test.whitebox.WhiteBox;
32+
import metaspace.share.TriggerUnloadingHelper;
3133
import metaspace.stressHierarchy.common.classloader.tree.Node;
3234
import metaspace.stressHierarchy.common.classloader.tree.Tree;
3335
import metaspace.stressHierarchy.common.exceptions.ClassNotUnloadedException;
3436
import metaspace.stressHierarchy.common.exceptions.TimeIsOverException;
3537
import nsk.share.test.ExecutionController;
36-
import jdk.test.whitebox.WhiteBox;
37-
import vm.share.gc.TriggerUnloadingHelper;
3838

3939
public class PerformChecksHelper {
4040

test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/common/StressHierarchyBaseClass.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424

2525
import java.net.MalformedURLException;
2626

27-
import vm.share.gc.HeapOOMEException;
28-
import vm.share.gc.TriggerUnloadingByFillingMetaspace;
29-
import vm.share.gc.TriggerUnloadingHelper;
30-
import vm.share.gc.TriggerUnloadingWithWhiteBox;
31-
27+
import metaspace.share.HeapOOMEException;
28+
import metaspace.share.TriggerUnloadingByFillingMetaspace;
29+
import metaspace.share.TriggerUnloadingHelper;
30+
import metaspace.share.TriggerUnloadingWithWhiteBox;
3231
import metaspace.stressHierarchy.common.classloader.tree.Node;
3332
import metaspace.stressHierarchy.common.classloader.tree.Tree;
3433
import metaspace.stressHierarchy.common.exceptions.TimeIsOverException;

0 commit comments

Comments
 (0)