Retune some inlining thresholds
[hiphop-php.git] / hphp / test / slow / exceptions / 66.php
blob47d63f05d585eada587561ddfccd1a582c868db3
1 <?hh
3 class C {
4 <<__NEVER_INLINE>>
5 function g() {
6 $ex = new Exception();
7 $bt = $ex->getTrace();
8 foreach ($bt as $k => $_) {
9 $frame = $bt[$k];
10 unset($frame['file']);
11 unset($frame['line']);
12 unset($frame['args']);
13 ksort(inout $frame);
14 $bt[$k] = $frame;
16 var_dump($bt);
18 <<__NEVER_INLINE>>
19 function f() {
20 $this->g();
23 <<__EntryPoint>> function main(): void {
24 $obj = new C;
25 $obj->f();
26 echo "------------------------\n";
27 Exception::setTraceOptions(DEBUG_BACKTRACE_PROVIDE_OBJECT);
28 $obj->f();