Skip to content

Commit 66ab5bd

Browse files
committed
try to get data only if 'live' is true
1 parent 38dc39c commit 66ab5bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/graalvm/src/org/graalvm/visualvm/graalvm/libgraal/MemoryModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ private Object[] getAttributes(String... names) {
338338
}
339339

340340
private Object[] getData() {
341-
if (connection != null) {
341+
if (live && connection != null) {
342342
Object[] values = getAttributes(USAGE_ATTRIBUTE, PEAK_USAGE_ATTRIBUTE);
343343

344344
if (values == null) {

0 commit comments

Comments
 (0)