[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v6 03/14] xen: Use a typesafe to define INVALID_MFN
On 08/07/2016 23:01, Elena Ufimtseva wrote: > >>> @@ -838,7 +838,6 @@ mfn_t oos_snapshot_lookup(struct domain *d, mfn_t gmfn) >>> >>> SHADOW_ERROR("gmfn %lx was OOS but not in hash table\n", mfn_x(gmfn)); >>> BUG(); >>> - return _mfn(INVALID_MFN); > Can compiler be unhappy about this? This was my suggestion, from a previous round of review. A while ago, I annotated BUG() with unreachable(), as as execution will not continue from a bugframe, but the shadow code is definitely older than my change. As such, compilers will have been dropping this return statement as part of dead-code-elimination anyway. This option is better than just replacing one bit of dead code with a different bit of dead code. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |