In this paper the phase-space of generic 2D area-preserving polynomial mappings is studied. These mappings modelize the transverse dynamics of a flat beam in a circular machine dominated by nonlinear magnetic errors. In particular, the problem of computing the dynamic aperture, i.e. the region in phase-space where stable motion occurs, is considered. The main result is that the boundary of the ...