perl_clone_using: do simple assign/copying first
authorDavid Mitchell <davem@iabyn.com>
Mon, 6 Jun 2011 15:01:12 +0000 (16:01 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 6 Jun 2011 18:44:34 +0000 (19:44 +0100)
commit692fcd37585c5b7f1e0e1a30148e0451f2f963eb
tree9e32fffbd9a585e4eaa78134347e868f16e8fc34
parent879bc93bd50876528260df48e1477ae03ed0a25c
perl_clone_using: do simple assign/copying first

For all the elements of the interpreter that can be cloned by
a simple initialisation (e.g. assign NULL/0/-1), or by a direct
copy from proto, do these first. This means that anything more complex,
that might for example require a malloc, gets done after as much of the
interpreter structure has already been initialised as possible.

This is the beginnings of a fix for [perl #90006].

This commit should have no change in functionality; it's simply moving a
bunch of assign statements to earlier within perl_clone_using().
sv.c