From acb23454e57e1bbe828e7f3114430cab2d5db44c Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 22 Oct 2021 17:24:34 +0900 Subject: allow to access ivars of classes/modules if an ivar of a class/module refer to a shareable object, this ivar can be read from non-main Ractors. --- benchmark/vm_ivar_of_class.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 benchmark/vm_ivar_of_class.yml (limited to 'benchmark') diff --git a/benchmark/vm_ivar_of_class.yml b/benchmark/vm_ivar_of_class.yml new file mode 100644 index 0000000000..172e28b2fd --- /dev/null +++ b/benchmark/vm_ivar_of_class.yml @@ -0,0 +1,12 @@ +prelude: | + class C + @a = 1 + def self.a + _a = @a; _a = @a; _a = @a; _a = @a; _a = @a; + _a = @a; _a = @a; _a = @a; _a = @a; _a = @a; + end + end +benchmark: + vm_ivar_of_class: | + a = C.a +loop_count: 30000000 -- cgit v1.2.3