Log on materializing GlobalsArraynightly-2020.05.24nightly-2020.05.25
commit3d90af43805bef562b213efff3d0b3fb62a5200d
authorShaunak Kishore <[email protected]>
Sat, 23 May 2020 21:55:26 +0000 (23 14:55 -0700)
committerFacebook GitHub Bot <[email protected]>
Sat, 23 May 2020 21:59:02 +0000 (23 14:59 -0700)
tree6ee164a5779d5308bffa572cb36abb1b584aba5b
parenta20c7945409cb0b10cf901abb029a2ca6035897c
Log on materializing GlobalsArray

Summary:
"The time has come," the HAM team said,
"To kill GlobalsArray.
Its reffiness offends the eyes
Since COW is here to stay,
And it implements Vsize
Which slows down CountArray."

"But wait a bit," Hack users cried,
"Will our code still be right?
For someone may, for Good Reason
To $GLOBALS read or write -
And if the key were...'GLOBALS'
It would take down the site!"

"A bunch of clowns!" the HAM team said,
And heaved a weary sigh.
"These notices in lookupAdd
Will fire if aught's awry.
If they've the gall to read 'em all
We'll warn in getDefined!"

The warnings shipped with next release.
The error logs looked clean.
Soon enough we raised instead
And still the push was green -
For when they tried to file a SEV:
"Response code: 418"

Reviewed By: mxw

Differential Revision: D21705642

fbshipit-source-id: 1bf845d1b45292fe3ed857243ffc9f15e03d52e7
44 files changed:
hphp/doc/ir.specification
hphp/runtime/ext/vsdebug/variables_command.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/jit/ir-opcode.cpp
hphp/runtime/vm/jit/irgen-sprop-global.cpp
hphp/runtime/vm/jit/irlower-branch.cpp
hphp/runtime/vm/jit/irlower-internal-inl.h
hphp/runtime/vm/jit/irlower-load-store.cpp
hphp/runtime/vm/jit/memory-effects.cpp
hphp/runtime/vm/jit/native-calls.cpp
hphp/test/quick/GLOBALS.php.expectf [moved from hphp/test/quick/GLOBALS.php.expect with 50% similarity]
hphp/test/quick/alias_torture_subscript.php.expect [deleted file]
hphp/test/quick/alias_torture_subscript.php.expectf [new file with mode: 0644]
hphp/test/quick/global_dequeue_pop.php.expect [deleted file]
hphp/test/quick/global_dequeue_pop.php.expectf [new file with mode: 0644]
hphp/test/slow/array/bool-cast.php.expect [deleted file]
hphp/test/slow/array/bool-cast.php.expectf [new file with mode: 0644]
hphp/test/slow/array/empty-globals.php.expect [deleted file]
hphp/test/slow/array/empty-globals.php.expectf [new file with mode: 0644]
hphp/test/slow/array_cse/globals.php.expect [deleted file]
hphp/test/slow/array_cse/globals.php.expectf [new file with mode: 0644]
hphp/test/slow/array_cse/globals2.php.expect [deleted file]
hphp/test/slow/array_cse/globals2.php.expectf [new file with mode: 0644]
hphp/test/slow/array_functions/self_recursive.php.expectf
hphp/test/slow/ext_array/array_diff_key_uncommon_types.php.expect [deleted file]
hphp/test/slow/ext_array/array_diff_key_uncommon_types.php.expectf [new file with mode: 0644]
hphp/test/slow/ext_array/array_intersect_key_uncommon_types.php.expectf [moved from hphp/test/slow/ext_array/array_intersect_key_uncommon_types.php.expect with 60% similarity]
hphp/test/slow/ext_array/array_map-globals.php.expect [deleted file]
hphp/test/slow/ext_array/array_map-globals.php.expectf [new file with mode: 0644]
hphp/test/slow/ext_array/count-opts.php.expectf
hphp/test/slow/global_vars/functions.php.expect [deleted file]
hphp/test/slow/global_vars/functions.php.expectf [new file with mode: 0644]
hphp/test/slow/global_vars/isset_unset_superglobals.php.expect [deleted file]
hphp/test/slow/global_vars/isset_unset_superglobals.php.expectf [new file with mode: 0644]
hphp/test/slow/objprof/strings-recursive.php.expect [deleted file]
hphp/test/slow/objprof/strings-recursive.php.expectf [new file with mode: 0644]
hphp/test/slow/spec/tests/variables/predefined_variables.php.expectf
hphp/test/slow/super_globals/1387.php.expect [deleted file]
hphp/test/slow/super_globals/1387.php.expectf [new file with mode: 0644]
hphp/test/slow/unset/1114.php.expect [deleted file]
hphp/test/slow/unset/1114.php.expectf [new file with mode: 0644]
hphp/test/slow/yield/2171.php.expect [deleted file]
hphp/test/slow/yield/2171.php.expectf [new file with mode: 0644]
hphp/test/zend/good/ext/standard/tests/array/bug29253.php.expectf