[project @ 2002-02-01 10:50:35 by simonmar] When distinguishing between code & data pointers, rather than testing for membership of the text section, test for not membership of one of the data sections.
[project @ 2002-02-01 10:50:35 by simonmar]
When distinguishing between code & data pointers, rather than testing
for membership of the text section, test for not membership of one of
the data sections.

The reason for this change is that testing for membership of the text
section was fragile:  we could only test whether a value was smaller
than the end address, because there doesn't appear to be a portable
way to find the beginning of the text section.  Indeed, the test
breaks on very recent Linux kernels which mmap() memory below the
program text.

In fact, the reversed test may be faster because the expected common
case is when the pointer is into the dynamic heap, and we eliminate
these case immediately in the new test.  A quick test shows no
measurable performance difference with the change.

MERGE TO STABLE

jstolarek/ghc,urbanslug/ghc,spacekitteh/smcghc,ryantm/ghc,sgillespie/ghc,forked-upstream-packages-for-ghcjs/ghc,mcschroeder/ghc,forked-upstream-packages-for-ghcjs/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,nkaretnikov/ghc,nkaretnikov/ghc,christiaanb/ghc,olsner/ghc,sdiehl/ghc,spacekitteh/smcghc,shlevy/ghc,forked-upstream-packages-for-ghcjs/ghc,gcampax/ghc,wxwxwwxxx/ghc,spacekitteh/smcghc,snoyberg/ghc,holzensp/ghc,frantisekfarka/ghc-dsi,nushio3/ghc,sgillespie/ghc,anton-dessiatov/ghc,lukexi/ghc-7.8-arm64,tjakway/ghcjvm,holzensp/ghc,snoyberg/ghc,ml9951/ghc,elieux/ghc,ml9951/ghc,siddhanathan/ghc,ezyang/ghc,nushio3/ghc,gcampax/ghc,shlevy/ghc,wxwxwwxxx/ghc,AlexanderPankiv/ghc,lukexi/ghc-7.8-arm64,olsner/ghc,TomMD/ghc,mfine/ghc,green-haskell/ghc,nathyong/microghc-ghc,vTurbine/ghc,TomMD/ghc,fmthoma/ghc,shlevy/ghc,spacekitteh/smcghc,olsner/ghc,green-haskell/ghc,nkaretnikov/ghc,nomeata/ghc,gridaphobe/ghc,da-x/ghc,vikraman/ghc,TomMD/ghc,urbanslug/ghc,ghc-android/ghc,lukexi/ghc,nathyong/microghc-ghc,TomMD/ghc,oldmanmike/ghc,acowley/ghc,ghc-android/ghc,mcmaniac/ghc,jstolarek/ghc,forked-upstream-packages-for-ghcjs/ghc,fmthoma/ghc,sdiehl/ghc,tjakway/ghcjvm,mettekou/ghc,sdiehl/ghc,mcmaniac/ghc,gridaphobe/ghc,bitemyapp/ghc,sgillespie/ghc,lukexi/ghc,mettekou/ghc,da-x/ghc,frantisekfarka/ghc-dsi,nkaretnikov/ghc,holzensp/ghc,jstolarek/ghc,frantisekfarka/ghc-dsi,bitemyapp/ghc,da-x/ghc,AlexanderPankiv/ghc,ekmett/ghc,nkaretnikov/ghc,vikraman/ghc,acowley/ghc,vTurbine/ghc,ghc-android/ghc,hferreiro/replay,mfine/ghc,vTurbine/ghc,ezyang/ghc,vikraman/ghc,anton-dessiatov/ghc,vTurbine/ghc,elieux/ghc,gridaphobe/ghc,vTurbine/ghc,bitemyapp/ghc,wxwxwwxxx/ghc,tibbe/ghc,ilyasergey/GHC-XAppFix,snoyberg/ghc,mcschroeder/ghc,mfine/ghc,GaloisInc/halvm-ghc,mcschroeder/ghc,oldmanmike/ghc,wxwxwwxxx/ghc,vikraman/ghc,nomeata/ghc,sgillespie/ghc,siddhanathan/ghc,nkaretnikov/ghc,ryantm/ghc,vikraman/ghc,siddhanathan/ghc,oldmanmike/ghc,mcmaniac/ghc,ilyasergey/GHC-XAppFix,mfine/ghc,ekmett/ghc,GaloisInc/halvm-ghc,fmthoma/ghc,hferreiro/replay,wxwxwwxxx/ghc,bitemyapp/ghc,tibbe/ghc,ezyang/ghc,ml9951/ghc,siddhanathan/ghc,ml9951/ghc,anton-dessiatov/ghc,da-x/ghc,mettekou/ghc,lukexi/ghc,forked-upstream-packages-for-ghcjs/ghc,nathyong/microghc-ghc,nathyong/microghc-ghc,frantisekfarka/ghc-dsi,AlexanderPankiv/ghc,ezyang/ghc,TomMD/ghc,mfine/ghc,gridaphobe/ghc,lukexi/ghc-7.8-arm64,tjakway/ghcjvm,acowley/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,nomeata/ghc,ryantm/ghc,GaloisInc/halvm-ghc,tibbe/ghc,tjakway/ghcjvm,elieux/ghc,urbanslug/ghc,christiaanb/ghc,ilyasergey/GHC-XAppFix,ml9951/ghc,nomeata/ghc,mcschroeder/ghc,gcampax/ghc,sdiehl/ghc,vikraman/ghc,anton-dessiatov/ghc,gcampax/ghc,ml9951/ghc,mcschroeder/ghc,snoyberg/ghc,oldmanmike/ghc,hferreiro/replay,elieux/ghc,christiaanb/ghc,ml9951/ghc,da-x/ghc,christiaanb/ghc,anton-dessiatov/ghc,sgillespie/ghc,anton-dessiatov/ghc,TomMD/ghc,ezyang/ghc,tjakway/ghcjvm,urbanslug/ghc,nathyong/microghc-ghc,AlexanderPankiv/ghc,ekmett/ghc,mettekou/ghc,shlevy/ghc,wxwxwwxxx/ghc,urbanslug/ghc,lukexi/ghc,hferreiro/replay,shlevy/ghc,ghc-android/ghc,TomMD/ghc,shlevy/ghc,tjakway/ghcjvm,vikraman/ghc,olsner/ghc,holzensp/ghc,christiaanb/ghc,ghc-android/ghc,nushio3/ghc,bitemyapp/ghc,snoyberg/ghc,fmthoma/ghc,sdiehl/ghc,nushio3/ghc,ghc-android/ghc,hferreiro/replay,lukexi/ghc-7.8-arm64,tibbe/ghc,nomeata/ghc,gcampax/ghc,ezyang/ghc,mettekou/ghc,urbanslug/ghc,sgillespie/ghc,anton-dessiatov/ghc,jstolarek/ghc,forked-upstream-packages-for-ghcjs/ghc,ryantm/ghc,holzensp/ghc,acowley/ghc,acowley/ghc,mfine/ghc,ml9951/ghc,elieux/ghc,hferreiro/replay,siddhanathan/ghc,ezyang/ghc,mettekou/ghc,gcampax/ghc,gcampax/ghc,ekmett/ghc,gridaphobe/ghc,oldmanmike/ghc,mcmaniac/ghc,snoyberg/ghc,mcschroeder/ghc,mcschroeder/ghc,nushio3/ghc,hferreiro/replay,olsner/ghc,sdiehl/ghc,ghc-android/ghc,GaloisInc/halvm-ghc,ilyasergey/GHC-XAppFix,fmthoma/ghc,sdiehl/ghc,nushio3/ghc,oldmanmike/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc,nathyong/microghc-ghc,olsner/ghc,green-haskell/ghc,snoyberg/ghc,vTurbine/ghc,sgillespie/ghc,mettekou/ghc,AlexanderPankiv/ghc,spacekitteh/smcghc,green-haskell/ghc,wxwxwwxxx/ghc,tibbe/ghc,ryantm/ghc,christiaanb/ghc,fmthoma/ghc,da-x/ghc,green-haskell/ghc,lukexi/ghc-7.8-arm64,mfine/ghc,acowley/ghc,tjakway/ghcjvm,GaloisInc/halvm-ghc,AlexanderPankiv/ghc,siddhanathan/ghc,fmthoma/ghc,oldmanmike/ghc,jstolarek/ghc,urbanslug/ghc,acowley/ghc,siddhanathan/ghc,shlevy/ghc,nathyong/microghc-ghc,da-x/ghc,mcmaniac/ghc,elieux/ghc,nushio3/ghc,ekmett/ghc,olsner/ghc,elieux/ghc,gridaphobe/ghc,christiaanb/ghc,frantisekfarka/ghc-dsi,vTurbine/ghc