Skip to content

Commit bf74122

Browse files
committed
reuse jvm variable
1 parent 35bc013 commit bf74122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/sampler/src/org/graalvm/visualvm/sampler/SamplerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ public void run() {
657657
});
658658
return;
659659
}
660-
if (!JvmFactory.getJVMFor(application).isAttachable()) {
660+
if (!jvm.isAttachable()) {
661661
SwingUtilities.invokeLater(new Runnable() {
662662
public void run() {
663663
memoryStatus = NbBundle.getMessage(SamplerImpl.class,

0 commit comments

Comments
 (0)