Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Make ResourceData ref-count start at 1

Summary: Similar to how StringData/ObjectData/ArrayData now works, initialize
the ResourceData ref-count to 1 instead of 0, and save pointless
inc-refs. Unlike other patches of this nature, this change is quite trivial, as
there's very few bare manipulations of ResourceData reference counts.

Also mark that the AllocObj and NewInstance IR opcodes produce a ref-count
(since the ObjectData ref-count diff).

Reviewed By: @​bnell

Differential Revision: D2218061
latest commit a264088bf9
@ricklavoie ricklavoie authored hhvm-bot committed
Something went wrong with that request. Please try again.