< prev index next >
test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
Print this page
rev 49267 : [mq]: event5
rev 49268 : [mq]: event6
@@ -40,11 +40,11 @@
public static void main(String[] args) {
final int numThreads = 24;
ArrayList<Thread> list = new ArrayList<>();
// Remember a lot of garbage to have space for all thread samples.
- HeapMonitor.enableSamplingRate();
+ HeapMonitor.enableSamplingEvents();
HeapMonitor.setGarbageHistory(10000);
for (int i = 0 ; i < numThreads; i++) {
Thread thread = new Thread(new Allocator(i), "Allocator" + i);
thread.start();
< prev index next >