Fix contracts in `tryResolveToken` et. al.
authorPat Gavlin <pagavlin@microsoft.com>
Mon, 2 May 2016 23:40:26 +0000 (16:40 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Tue, 3 May 2016 14:15:42 +0000 (07:15 -0700)
commit4f1f4b5a71b90b98d8f201f23f8244abd9629cc7
tree15430b44253dea739405fdf7a2c983119988d66f
parent9a51a7efa645c96f3d8f7b24b8e711b258b5c606
Fix contracts in `tryResolveToken` et. al.

`isValidToken`'s contract was too conservative: it was needlessly marked
`THROWS`, `GC_TRIGGERS`, and `MODE_PREEMPTIVE`. Its contract and those
of its callers have been tightened to `NOTHROW`, `GC_NOTRIGGER`, and
`MODE_ANY`.

Commit migrated from https://github.com/dotnet/coreclr/commit/8686653b0266b82a5ffb6d7aca4116d72c88df86
src/coreclr/src/vm/jitinterface.cpp