[parrot/parrot] f823a3: Fix recursion_depth growing with every task starte...

noreply at github.com noreply at github.com
Sun Nov 27 15:09:37 UTC 2011


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot

  Commit: f823a3294a41adf3d385d8bb7b7100b08244b433
      https://github.com/parrot/parrot/commit/f823a3294a41adf3d385d8bb7b7100b08244b433
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2011-11-27 (Sun, 27 Nov 2011)

  Changed paths:
    M include/parrot/context.h
  M src/call/context_accessors.c
  M src/pmc/task.pmc
  M t/op/gc.t

  Log Message:
  -----------
  Fix recursion_depth growing with every task started

Restore the recursion_depth in the current context after invoking a
task's sub. This is a workaround for Parrot_Sub_invoke incrementing
recursion_depth unconditionally which is not true for invoked tasks,
since they run in parallel to the invoking sub, not nested but still
inherit the context.

This patch also unifies recursion_depth accessors to return the new
value, fixing an off by one error in recursion depth limiting.


  Commit: 4d8bda1ea9b701e8f480c0effbe9f00742f3db2a
      https://github.com/parrot/parrot/commit/4d8bda1ea9b701e8f480c0effbe9f00742f3db2a
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2011-11-27 (Sun, 27 Nov 2011)

  Changed paths:
    M frontend/parrot2/main.c
  M frontend/parrot2/prt0.pir
  M frontend/parrot2/prt0.winxed

  Log Message:
  -----------
  Merge branch 'master' of github.com:parrot/parrot


Compare: https://github.com/parrot/parrot/compare/31b8edb...4d8bda1


More information about the parrot-commits mailing list