[parrot/parrot] c6cb9d: [gc] decruft -DMEMORY_DEBUG and DETAIL_MEMORY_DEBU...

GitHub noreply at github.com
Sun Oct 26 09:48:25 UTC 2014


  Branch: refs/heads/rurban/gcdebug-gh1108
  Home:   https://github.com/parrot/parrot
  Commit: c6cb9db08194830a01f41e2a8c319e22c124c876
      https://github.com/parrot/parrot/commit/c6cb9db08194830a01f41e2a8c319e22c124c876
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-26 (Sun, 26 Oct 2014)

  Changed paths:
    M include/parrot/interpreter.h
    M src/gc/alloc_memory.c
    M src/gc/gc_gms.c
    M src/gc/gc_inf.c
    M src/gc/gc_ms.c
    M src/gc/gc_ms2.c
    M src/gc/gc_private.h
    M src/platform/darwin/sysmem.c
    M src/platform/generic/sysmem.c

  Log Message:
  -----------
  [gc] decruft -DMEMORY_DEBUG and DETAIL_MEMORY_DEBUG, add -D100

Check -D100 instead of DETAIL_MEMORY_DEBUG when -DMEMORY_DEBUG is enabled.
This way we can run -D101 and -D1 to get verbose and non-verbose GC tracings.

Add new MEMORY_DEBUG_DETAIL_2 macro for fprintf helpers all over.
Move common panic_failed_allocation into gc_private.h, maybe the other
common gc memory funcs also to save space.
Print avail sysmem on startup with -D1.
GH #1108


  Commit: 153cd727dcfb011e700a4d84d13b7265f7eb33d6
      https://github.com/parrot/parrot/commit/153cd727dcfb011e700a4d84d13b7265f7eb33d6
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-26 (Sun, 26 Oct 2014)

  Changed paths:
    M include/parrot/interpreter.h
    M src/call/context_accessors.c
    M src/gc/gc_private.h
    M src/platform/darwin/sysmem.c

  Log Message:
  -----------
  [core] enable Interp_debug_TEST and flags with flag combinations

Now you can check for multiple flags, e.g.
if (Interp_debug_TEST(interp,
       PARROT_MEM_STAT_DEBUG_FLAG | PARROT_GC_DETAIL_DEBUG_FLAG))
Was used only for single flags, so no changes for existing code.
Document the single flag limitation for the left-over trace_flags test.
There's no -t flag combination, like verbose yet.


  Commit: fa1e4fe012b1fd3ffd997bdcbdeb10b21cf812f3
      https://github.com/parrot/parrot/commit/fa1e4fe012b1fd3ffd997bdcbdeb10b21cf812f3
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-26 (Sun, 26 Oct 2014)

  Changed paths:
    M src/io/api.c
    M src/io/io_private.h

  Log Message:
  -----------
  [cage] unconst IO_VTABLE * vtables, -Wcast-qual cannot be suppressed

see e.g. https://stackoverflow.com/questions/13249756/explicit-ignore-warning-from-wcast-qual-cast-discards-attribute-const#comment38552597_13253997

2 remaining -Wcast-qual warnings for legacy API.


Compare: https://github.com/parrot/parrot/compare/4adfc6642e51...fa1e4fe012b1


More information about the parrot-commits mailing list