| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 37088)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -2523,6 +2523,13 @@
|
| if (!CodePatcher::IsEntryPatched(code)) {
|
| CodePatcher::PatchEntry(code);
|
| }
|
| + } else if (!function.HasCode() && (code.GetEntryPatchPc() != 0)) {
|
| + // The code has already been disconnected, make it invalid. Do not
|
| + // bother with OSR compiled code that has no valid entry-patch.
|
| + ReportSwitchingCode(code);
|
| + if (!CodePatcher::IsEntryPatched(code)) {
|
| + CodePatcher::PatchEntry(code);
|
| + }
|
| }
|
| }
|
| }
|
|
|