erts: Refactor mseg cache
erts: Refactor mseg cache

Use double ended cache queues to evict oldest cache first

jemsbhai/otp,krishnakumar4a4/otp,cobusc/otp,falkevik/otp,ahmedshafeeq/otp,jj1bdx/otp,Teino1978-Corp/erlang-otp,bjorng/otp,lantti/otp,matwey/otp,haguenau/otp,fenollp/otp,cobusc/otp,enikki/otp,RJ/otp,uabboli/otp,gjaldon/otp,VincentHHL/otp,paladim/otp,msantos/otp,mujiatong/otp,erlang/otp,cnbin/otp,weisslj/otp,saleyn/otp,sammoth-wazoku/otp,lianghaivv/otp,jj1bdx/otp,paladim/otp,bjorng/otp,awetzel/otp,vic/otp,RichMorin/otp,falkevik/otp,falkevik/otp,vladdu/otp,enikki/otp,saleyn/otp,riverrun/otp,kvakvs/otp,paulcager/otp,aboroska/otp,theom/otp,sitexa/otp,basho/otp,sammoth-wazoku/otp,lantti/otp,theom/otp,RichMorin/otp,klarna/otp,getong/otp,release-project/otp,jj1bdx/otp,jemsbhai/otp,benoitc/otp-1,fenollp/otp,RoadRunnr/otp,jinshana/otp,fenollp/otp,electricimp/otp,lightcyphers/otp,hairyhum/otp,gjaldon/otp,ferd/otp,lianghaivv/otp,sitexa/otp,lucafavatella/otp,sammoth-wazoku/otp,jemsbhai/otp,benoitc/otp-1,jinshana/otp,beni55/otp,dgud/otp,tuncer/otp,riverrun/otp,marquisthunder/otp,weisslj/otp,lianghaivv/otp,paladim/otp,psyeugenic/otp,jj1bdx/otp,RJ/otp,ader1990/otp,emacsmirror/erlang,getong/otp,sammoth-wazoku/otp,ferd/otp,jamesruan/otp,ahmedshafeeq/otp,dgud/otp,ferd/otp,haguenau/otp,marquisthunder/otp,saleyn/otp,mujiatong/otp,yangchengjian/otp,RaimoNiskanen/otp,krishnakumar4a4/otp,riverrun/otp,electricimp/otp,awetzel/otp,vladdu/otp,lucafavatella/otp,lhslll/otp,c-rack/otp,bernardd/otp,bsmr-erlang/otp,paladim/otp,tuncer/otp,rlipscombe/otp,krishnakumar4a4/otp,neeraj9/otp,dumbbell/otp,basho/otp,getong/otp,erlang/otp,lrascao/otp,fenollp/otp,c-rack/otp,VincentHHL/otp,RGafiyatullin/otp,RichMorin/otp,massemanet/otp,lrascao/otp,vinoski/otp,massemanet/otp,paladim/otp,schlagert/otp,uabboli/otp,dgud/otp,falkevik/otp,Teino1978-Corp/otp,Teino1978-Corp/erlang-otp,bsmr-erlang/otp,RoadRunnr/otp,lianghaivv/otp,gjaldon/otp,theom/otp,dumbbell/otp,lightcyphers/otp,neeraj9/otp,psyeugenic/otp,awetzel/otp,enikki/otp,RaimoNiskanen/otp,sitexa/otp,Teino1978-Corp/otp,lightcyphers/otp,electricimp/otp,RichMorin/otp,stolen/otp,jj1bdx/otp,gjaldon/otp,vinoski/otp,ader1990/otp,matwey/otp,goertzenator/otp,RoadRunnr/otp,dumbbell/otp,RaimoNiskanen/otp,electricimp/otp,entropiae/otp,haguenau/otp,palas/otp,GinjaNinja32/otp,rlipscombe/otp,RaimoNiskanen/otp,matwey/otp,goertzenator/otp,RJ/otp,lhslll/otp,saleyn/otp,matwey/otp,bernardd/otp,bugs-erlang-org/otp,benoitc/otp-1,cobusc/otp,legoscia/otp,GinjaNinja32/otp,GinjaNinja32/otp,RoadRunnr/otp,jamesruan/otp,aboroska/otp,vladdu/otp,VincentHHL/otp,beni55/otp,klarna/otp,jinshana/otp,bjorng/otp,neeraj9/otp,mujiatong/otp,uabboli/otp,marquisthunder/otp,vladdu/otp,psyeugenic/otp,rlipscombe/otp,saleyn/otp,vic/otp,benoitc/otp-1,lantti/otp,enikki/otp,VincentHHL/otp,klarna/otp,paladim/otp,marquisthunder/otp,entropiae/otp,release-project/otp,bugs-erlang-org/otp,lantti/otp,dumbbell/otp,dumbbell/otp,ader1990/otp,vic/otp,haguenau/otp,palas/otp,RGafiyatullin/otp,emile/otp,bernardd/otp,ahmedshafeeq/otp,NOMORECOFFEE/otp,johanclaesson/otp,vladdu/otp,goertzenator/otp,sitexa/otp,gjaldon/otp,RJ/otp,theom/otp,dgud/otp,ferd/otp,aboroska/otp,isvilen/otp,kvakvs/otp,uabboli/otp,sammoth-wazoku/otp,mikpe/otp,RGafiyatullin/otp,isvilen/otp,dgud/otp,electricimp/otp,klarna/otp,dumbbell/otp,bugs-erlang-org/otp,goertzenator/otp,mikpe/otp,marquisthunder/otp,VincentHHL/otp,tuncer/otp,jemsbhai/otp,beni55/otp,bernardd/otp,palas/otp,jinshana/otp,platinumthinker/otp,potatosalad/otp,sdebnath/otp,schlagert/otp,vinoski/otp,legoscia/otp,haguenau/otp,matwey/otp,VincentHHL/otp,psyeugenic/otp,bjorng/otp,emacsmirror/erlang,uabboli/otp,sammoth-wazoku/otp,massemanet/otp,beni55/otp,NOMORECOFFEE/otp,potatosalad/otp,Teino1978-Corp/erlang-otp,RoadRunnr/otp,haguenau/otp,entropiae/otp,lrascao/otp,neeraj9/otp,matwey/otp,vinoski/otp,goertzenator/otp,platinumthinker/otp,emacsmirror/erlang,Teino1978-Corp/otp,sdebnath/otp,cobusc/otp,electricimp/otp,jj1bdx/otp,ferd/otp,bugs-erlang-org/otp,legoscia/otp,isvilen/otp,ferd/otp,weisslj/otp,bjorng/otp,cobusc/otp,legoscia/otp,sitexa/otp,tuncer/otp,vinoski/otp,isvilen/otp,fenollp/otp,legoscia/otp,lhslll/otp,derek121/otp,vinoski/otp,vic/otp,paulcager/otp,msantos/otp,g-andrade/otp,jamesruan/otp,potatosalad/otp,g-andrade/otp,massemanet/otp,basho/otp,vic/otp,fenollp/otp,potatosalad/otp,vinoski/otp,NOMORECOFFEE/otp,krishnakumar4a4/otp,jemsbhai/otp,goertzenator/otp,marquisthunder/otp,jamesruan/otp,lemenkov/otp,psyeugenic/otp,erlang/otp,lucafavatella/otp,ferd/otp,lhslll/otp,lightcyphers/otp,jinshana/otp,lrascao/otp,massemanet/otp,sammoth-wazoku/otp,cobusc/otp,johanclaesson/otp,emacsmirror/erlang,release-project/otp,RaimoNiskanen/otp,hairyhum/otp,vinoski/otp,jamesruan/otp,awetzel/otp,saleyn/otp,lightcyphers/otp,johanclaesson/otp,haguenau/otp,getong/otp,jemsbhai/otp,release-project/otp,getong/otp,yangchengjian/otp,lightcyphers/otp,lemenkov/otp,rlipscombe/otp,lianghaivv/otp,cnbin/otp,lrascao/otp,NOMORECOFFEE/otp,jamesruan/otp,erlang/otp,goertzenator/otp,dgud/otp,stolen/otp,dumbbell/otp,entropiae/otp,lianghaivv/otp,neeraj9/otp,lightcyphers/otp,gjaldon/otp,msantos/otp,yangchengjian/otp,release-project/otp,riverrun/otp,riverrun/otp,RaimoNiskanen/otp,isvilen/otp,marquisthunder/otp,mujiatong/otp,getong/otp,platinumthinker/otp,rlipscombe/otp,sdebnath/otp,electricimp/otp,jj1bdx/otp,cnbin/otp,theom/otp,riverrun/otp,haguenau/otp,bugs-erlang-org/otp,RoadRunnr/otp,RoadRunnr/otp,uabboli/otp,weisslj/otp,emile/otp,msantos/otp,vladdu/otp,beni55/otp,saleyn/otp,bsmr-erlang/otp,aboroska/otp,g-andrade/otp,rlipscombe/otp,falkevik/otp,enikki/otp,falkevik/otp,cnbin/otp,aboroska/otp,ahmedshafeeq/otp,erlang/otp,sammoth-wazoku/otp,riverrun/otp,neeraj9/otp,derek121/otp,derek121/otp,platinumthinker/otp,basho/otp,isvilen/otp,paulcager/otp,c-rack/otp,sdebnath/otp,RichMorin/otp,schlagert/otp,aboroska/otp,klarna/otp,potatosalad/otp,GinjaNinja32/otp,lhslll/otp,mikpe/otp,johanclaesson/otp,aboroska/otp,Teino1978-Corp/erlang-otp,jinshana/otp,bsmr-erlang/otp,derek121/otp,neeraj9/otp,g-andrade/otp,gjaldon/otp,weisslj/otp,awetzel/otp,RGafiyatullin/otp,release-project/otp,isvilen/otp,vladdu/otp,emacsmirror/erlang,msantos/otp,potatosalad/otp,emile/otp,massemanet/otp,ahmedshafeeq/otp,paulcager/otp,emacsmirror/erlang,goertzenator/otp,ader1990/otp,stolen/otp,RGafiyatullin/otp,emacsmirror/erlang,uabboli/otp,bjorng/otp,RaimoNiskanen/otp,lrascao/otp,mujiatong/otp,lantti/otp,johanclaesson/otp,paulcager/otp,derek121/otp,tuncer/otp,bugs-erlang-org/otp,sdebnath/otp,NOMORECOFFEE/otp,RGafiyatullin/otp,lhslll/otp,lucafavatella/otp,yangchengjian/otp,awetzel/otp,rlipscombe/otp,klarna/otp,tuncer/otp,basho/otp,uabboli/otp,kvakvs/otp,hairyhum/otp,RGafiyatullin/otp,awetzel/otp,lemenkov/otp,cnbin/otp,Teino1978-Corp/otp,stolen/otp,lemenkov/otp,Teino1978-Corp/otp,krishnakumar4a4/otp,psyeugenic/otp,lightcyphers/otp,jamesruan/otp,bernardd/otp,legoscia/otp,lantti/otp,erlang/otp,isvilen/otp,sdebnath/otp,dgud/otp,electricimp/otp,hairyhum/otp,aboroska/otp,c-rack/otp,mikpe/otp,hairyhum/otp,platinumthinker/otp,fenollp/otp,entropiae/otp,massemanet/otp,RoadRunnr/otp,cnbin/otp,lucafavatella/otp,bernardd/otp,falkevik/otp,RaimoNiskanen/otp,mikpe/otp,yangchengjian/otp,bsmr-erlang/otp,gjaldon/otp,enikki/otp,release-project/otp,bsmr-erlang/otp,RoadRunnr/otp,johanclaesson/otp,massemanet/otp,theom/otp,ader1990/otp,lianghaivv/otp,lhslll/otp,stolen/otp,johanclaesson/otp,c-rack/otp,klarna/otp,RichMorin/otp,Teino1978-Corp/otp,massemanet/otp,theom/otp,jamesruan/otp,ahmedshafeeq/otp,NOMORECOFFEE/otp,entropiae/otp,weisslj/otp,psyeugenic/otp,enikki/otp,lrascao/otp,cobusc/otp,derek121/otp,cobusc/otp,jinshana/otp,potatosalad/otp,bsmr-erlang/otp,jemsbhai/otp,ferd/otp,palas/otp,beni55/otp,derek121/otp,paladim/otp,fenollp/otp,lrascao/otp,krishnakumar4a4/otp,bsmr-erlang/otp,matwey/otp,entropiae/otp,g-andrade/otp,schlagert/otp,vladdu/otp,msantos/otp,tuncer/otp,mujiatong/otp,erlang/otp,msantos/otp,g-andrade/otp,lianghaivv/otp,Teino1978-Corp/otp,getong/otp,benoitc/otp-1,krishnakumar4a4/otp,lucafavatella/otp,mikpe/otp,mujiatong/otp,bjorng/otp,ahmedshafeeq/otp,paulcager/otp,ahmedshafeeq/otp,emile/otp,RJ/otp,emacsmirror/erlang,vinoski/otp,potatosalad/otp,klarna/otp,kvakvs/otp,dumbbell/otp,sdebnath/otp,electricimp/otp,bjorng/otp,basho/otp,hairyhum/otp,lhslll/otp,entropiae/otp,jj1bdx/otp,RichMorin/otp,emacsmirror/erlang,vic/otp,lantti/otp,erlang/otp,bugs-erlang-org/otp,vic/otp,Teino1978-Corp/erlang-otp,VincentHHL/otp,Teino1978-Corp/erlang-otp,NOMORECOFFEE/otp,GinjaNinja32/otp,jinshana/otp,emile/otp,stolen/otp,getong/otp,sitexa/otp,Teino1978-Corp/erlang-otp,c-rack/otp,fenollp/otp,legoscia/otp,rlipscombe/otp,RichMorin/otp,potatosalad/otp,benoitc/otp-1,mikpe/otp,paulcager/otp,cnbin/otp,erlang/otp,mikpe/otp,emile/otp,schlagert/otp,lrascao/otp,hairyhum/otp,kvakvs/otp,kvakvs/otp,kvakvs/otp,platinumthinker/otp,basho/otp,enikki/otp,hairyhum/otp,weisslj/otp,dumbbell/otp,stolen/otp,mujiatong/otp,RGafiyatullin/otp,g-andrade/otp,GinjaNinja32/otp,marquisthunder/otp,yangchengjian/otp,theom/otp,vinoski/otp,msantos/otp,benoitc/otp-1,vic/otp,bsmr-erlang/otp,benoitc/otp-1,c-rack/otp,stolen/otp,cnbin/otp,ader1990/otp,GinjaNinja32/otp,GinjaNinja32/otp,VincentHHL/otp,emacsmirror/erlang,uabboli/otp,awetzel/otp,palas/otp,Teino1978-Corp/erlang-otp,yangchengjian/otp,emile/otp,kvakvs/otp,beni55/otp,falkevik/otp,saleyn/otp,rlipscombe/otp,lemenkov/otp,lemenkov/otp,dumbbell/otp,bjorng/otp,matwey/otp,schlagert/otp,schlagert/otp,bernardd/otp,jemsbhai/otp,getong/otp,rlipscombe/otp,legoscia/otp,Teino1978-Corp/otp,krishnakumar4a4/otp,sitexa/otp,yangchengjian/otp,psyeugenic/otp,bernardd/otp,weisslj/otp,lucafavatella/otp,mikpe/otp,tuncer/otp,platinumthinker/otp,dgud/otp,bjorng/otp,kvakvs/otp,riverrun/otp,bernardd/otp,falkevik/otp,basho/otp,RJ/otp,dgud/otp,derek121/otp,NOMORECOFFEE/otp,emile/otp,sdebnath/otp,vladdu/otp,goertzenator/otp,lantti/otp,dgud/otp,matwey/otp,getong/otp,erlang/otp,weisslj/otp,lemenkov/otp,isvilen/otp,basho/otp,lemenkov/otp,jj1bdx/otp,legoscia/otp,release-project/otp,ahmedshafeeq/otp,beni55/otp,platinumthinker/otp,jj1bdx/otp,schlagert/otp,neeraj9/otp,ader1990/otp,g-andrade/otp,g-andrade/otp,palas/otp,potatosalad/otp,tuncer/otp,paladim/otp,ferd/otp,saleyn/otp,release-project/otp,ader1990/otp,sitexa/otp,bugs-erlang-org/otp,mikpe/otp,RJ/otp,g-andrade/otp,RJ/otp,aboroska/otp,emile/otp,lucafavatella/otp,c-rack/otp,johanclaesson/otp,paulcager/otp,RaimoNiskanen/otp,isvilen/otp,palas/otp,palas/otp