Branch: Tag:

2010-04-16

2010-04-16 00:16:16 by Martin Stjernholm <mast@lysator.liu.se>

Added test case where Pike.count_memory causes garbage in the gc mark
queue.

Rev: src/testsuite.in:1.894

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.893 2010/04/10 17:12:42 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.894 2010/04/16 00:16:16 mast Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
6916:   ]])   test_do([[add_constant("count_memory_stats")]])    + test_program([[ +  function ff() +  { +  array x; +  array b() {return x;}; +  x = ({b}); +  return b; +  } +  +  int a() +  { +  function f = ff(); +  int s = Pike.count_memory (0, f()); +  f = 0; +  gc(); +  return s > 0; +  } + ]]) +    // Numerical limits.   test_true([[Int.NATIVE_MIN <= -2147483648]])   test_true([[Int.NATIVE_MAX >= 2147483647]])