From 83cfc8c8414edc956d7e8e3a1402c17bf35421a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 29 Aug 2012 13:07:27 +0200 Subject: beam_receive: Optimize receives using refs created by spawn_monitor/{1,3} --- lib/compiler/test/receive_SUITE_data/ref_opt/no_4.erl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/compiler/test/receive_SUITE_data/ref_opt/no_4.erl (limited to 'lib/compiler/test/receive_SUITE_data/ref_opt/no_4.erl') diff --git a/lib/compiler/test/receive_SUITE_data/ref_opt/no_4.erl b/lib/compiler/test/receive_SUITE_data/ref_opt/no_4.erl new file mode 100644 index 0000000000..3ce222176b --- /dev/null +++ b/lib/compiler/test/receive_SUITE_data/ref_opt/no_4.erl @@ -0,0 +1,12 @@ +-module(no_4). +-compile(export_all). + +?MODULE() -> + ok. + +f(X) -> + {Pid,Ref} = spawn_monitor(fun() -> ok end), + r(Pid, Ref). + +r(_, _) -> + ok. -- cgit v1.2.3