Skip to content

Commit cae4b5b

Browse files
committed
[GR-71434] Fix heap benchmarks after mx update
PullRequest: graalpython/4108
2 parents 9565645 + f0fc3cb commit cae4b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import mx
4141
import mx_benchmark
4242
import mx_polybench
43-
from mx_benchmark import StdOutRule, java_vm_registry, OutputCapturingVm, GuestVm, VmBenchmarkSuite, AveragingBenchmarkMixin
43+
from mx_benchmark import StdOutRule, java_vm_registry, OutputCapturingVm, GuestVm, VmBenchmarkSuite, AveragingBenchmarkMixin, bm_exec_context
4444
from mx_graalpython_bench_param import HARNESS_PATH
4545

4646
# ----------------------------------------------------------------------------------------------------------------------
@@ -956,7 +956,7 @@ def map_command(self, cmd):
956956
if self.bmSuite:
957957
bench_name = f"{self.bmSuite.name()}-{bench_name}"
958958
ts = datetime.now().strftime("%Y%m%d-%H%M%S")
959-
vm = self.bmSuite.execution_context.virtual_machine
959+
vm = bm_exec_context().get('vm')
960960
if isinstance(vm, GraalPythonVm) and vm.launcher_type == "jvm":
961961
jmap_command = mx.get_jdk().exe_path('jmap')
962962
else:

0 commit comments

Comments
 (0)