Skip to content

Commit 0a48140

Browse files
committed
Fix HPROF initializer thread name
1 parent 089ea36 commit 0a48140

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/ui/HeapViewerComponent.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import com.sun.tools.visualvm.heapviewer.HeapContext;
5959
import com.sun.tools.visualvm.heapviewer.HeapViewer;
6060
import java.awt.Dimension;
61+
import java.io.File;
6162
import org.openide.util.Lookup;
6263
import org.openide.util.NbBundle;
6364
import org.openide.util.RequestProcessor;
@@ -87,7 +88,9 @@ public HeapViewerComponent(HeapViewer heapViewer) {
8788

8889
add(new JLabel(Bundle.HeapViewerComponent_LoadingProgress(), JLabel.CENTER), BorderLayout.CENTER);
8990

90-
new RequestProcessor("HPROF initializer for " + getName()).post(new Runnable() { // NOI18N
91+
File file = heapViewer.getFile();
92+
String name = file == null ? "<no heap dump file>" : file.getName(); // NOI18N
93+
new RequestProcessor("HPROF initializer for " + name).post(new Runnable() { // NOI18N
9194
public void run() { initImpl(); }
9295
});
9396
}

0 commit comments

Comments
 (0)