trapmap <- getTrapMap
let w32_from = fromIntegral from
let sfi = trapmap M.! w32_from
+ setTrapMap $ M.delete w32_from trapmap
case sfi of
(SFI (StaticFieldInfo cls field)) -> getStaticFieldOffset cls field
_ -> error "getFieldAddr: no trapInfo. abort"
(II _ (MethodInfo methname _ msig)) ->
MethodInfo methname (vmap M.! fromIntegral methodtable) msig
_ -> error "getMethodEntry: no trapInfo. abort."
+ setTrapMap $ M.delete w32_from tmap
case M.lookup mi' mmap of
Nothing -> do
cls <- getClassFile cm