Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
package jvmbootstraptest;

import datadog.trace.test.util.GCUtils;
import java.util.ArrayList;
import java.util.List;

public class UnloadingChecker {

public static void main(final String[] args) {
final Thread t =
new Thread(
() -> {
final List<byte[]> list = new ArrayList<>();
while (true) {
list.add(new byte[100 * 1024 * 1024]);
}
});
t.start();
try {
GCUtils.awaitGC();
t.join(30_000);
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand Down