Bug 1348838 - Pass in errfnSentinel in verify checkedRead. r=kanru a=gchang
authorAndrew McCreight <continuation@gmail.com>
Mon, 20 Mar 2017 09:55:52 -0700
changeset 395366 5e5dc7a804c7d626bc2d0b82597b9675d971b6db
parent 395365 9e9bd62d163a94d8736c47569069af49d68e4331
child 395367 1bff0c493536f68a1850c435409495c45c91daf5
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskanru, gchang
bugs1348838
milestone54.0a2
Bug 1348838 - Pass in errfnSentinel in verify checkedRead. r=kanru a=gchang MozReview-Commit-ID: A40h9VEakBM
ipc/ipdl/ipdl/lower.py
--- a/ipc/ipdl/ipdl/lower.py
+++ b/ipc/ipdl/ipdl/lower.py
@@ -4136,17 +4136,18 @@ class _GenerateProtocolActorCode(ipdl.as
             + [ StmtDecl(Decl(p.bareType(side), p.var().name + 'Copy'))
                       for p in params ]
             + [ Whitespace.NL ]
             #  checked Read(&(varCopy), &(msgverify__), &(msgverifyIter__))
             + [ self.checkedRead(p.ipdltype,
                                  ExprAddrOf(ExprVar(p.var().name + 'Copy')),
                                  msgexpr, ExprAddrOf(itervar),
                                  errfn, p.bareType(side).name,
-                                 p.name)
+                                 sentinelKey=p.name,
+                                 errfnSentinel=errfnSentinel())
                 for p in params ]
             + [ self.endRead(msgvar, itervar) ]
             # Move the message back to its source before sending.
             + [ StmtExpr(ExprAssn(ExprDeref(msgsrcVar), ExprMove(msgvar))) ]
             ))
 
         return stmts