Avoid calling prestub through wrong MethodDesc (#5439)
authorJohn Chen <jochen@microsoft.com>
Fri, 3 Jun 2016 04:59:01 +0000 (21:59 -0700)
committerJohn Chen <jochen@microsoft.com>
Fri, 3 Jun 2016 04:59:01 +0000 (21:59 -0700)
commit4e4cac8c302b0ab6709cdc2f737a0370ca5b0026
tree359fad9c28b876fbdc536a25ac88f508c82b4e8b
parent9efbb7a70061c7f68f1c1922daa3a0a7cc67f3b1
Avoid calling prestub through wrong MethodDesc (#5439)

While fixing up a call from a Ready-to-Run method, we don't always
have the right implementation MethodDesc for the target of the call.
Thus it is potentially unsafe to DoPrestub using the MethodDesc we have,
causing a test failue (Loader.classloader_regressions_429802_CMain)
in issue #5366. This is fixed by not calling DoPrestub from
ExternalMethodFixupWorker.
src/vm/prestub.cpp