DescriptionInline constructors/destructor for JavaRef.
JavaRef<object> only contains a POD type (jobject); the destructor does
nothing and the default constructor just NULL-initializes. Inline both.
Also inline the non-default constructor when !DCHECK_IS_ON (but leave it
out of line otherwise as it contains a nontrivial DCHECK).
This saves 8736 bytes in the .text section as of the time of writing,
but will save 40kB or more as we wrap more JNI method parameters in
JavaRef.
BUG=519562
Committed: https://crrev.com/cf27355590f9fff414fdcd86ac4fee074d1e6271
Cr-Commit-Position: refs/heads/master@{#345114}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add comments warning about inlining #Patch Set 3 : also comment .cc file #
Messages
Total messages: 9 (3 generated)
|