Branch: refs/heads/rurban/gcdebug-gh1108
  Home:   https://github.com/parrot/parrot
  Commit: 4b46cf6dd873255acc8a9cf1207dac2659c0b194
      
https://github.com/parrot/parrot/commit/4b46cf6dd873255acc8a9cf1207dac2659c0b194
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 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: 05e7c932392127c3648631b566329754499c4be6
      
https://github.com/parrot/parrot/commit/05e7c932392127c3648631b566329754499c4be6
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 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: da5452486d06cc688bca4ff9647eec281810c787
      
https://github.com/parrot/parrot/commit/da5452486d06cc688bca4ff9647eec281810c787
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 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.


  Commit: 57339d0c4359cbe3c16fef5b304f9950bedd9113
      
https://github.com/parrot/parrot/commit/57339d0c4359cbe3c16fef5b304f9950bedd9113
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M docs/binaries/parrot.pod
    M docs/running.pod
    M frontend/parrot/main.c
    M frontend/parrot2/main.c
    M include/parrot/api.h
    M include/parrot/gc_api.h
    M include/parrot/interpreter.h
    M src/embed/api.c
    M src/gc/api.c
    M src/gc/gc_gms.c
    M src/gc/gc_ms2.c
    M src/gc/gc_private.h
    M src/interp/api.c

  Log Message:
  -----------
  [gc] check -D1 in startup, add -D2xx MEM_DETAIL_DEBUG_FLAG

Print GS and Memory info on -D1.
Add seperate GC_DEBUG_DETAIL_2 tracer to seperate it from
MEM_DETAIL_DEBUG_FLAG tracing for every single alloc/free.
Document the two new -D100 and -D200 flags with --ccflags=-DMEMORY_DEBUG


  Commit: dbc3a8c02982cc812f11472fd5a6bc2b372913bb
      
https://github.com/parrot/parrot/commit/dbc3a8c02982cc812f11472fd5a6bc2b372913bb
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/pmc/coroutine.pmc
    M src/pmc/sub.pmc

  Log Message:
  -----------
  [pmc] add Coroutine.mark with caller_seg

Coroutine.mark was just calling Sub.mark and missed to mark
the caller_seg. Do it now properly with inheritance.
Note that this does not fix GH #1109, which is a Coro in a wrong gen


  Commit: 0d9d736ef63dfb2c3a31a0d5a6048959d8dcd12b
      
https://github.com/parrot/parrot/commit/0d9d736ef63dfb2c3a31a0d5a6048959d8dcd12b
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M ChangeLog
    M src/gc/gc_gms.c

  Log Message:
  -----------
  [gc] Better -D1 printout. ChangeLog #1108

$ ulimit -Sv 640
$ ./parrot -D1
Free Memory: 8589934592
Memory via rlimit restricted to: 655360
GC nursery size: 2.0%
GMS GC threshold: 13107


  Commit: 0a5881252112e368d383050588b567fece928ef5
      
https://github.com/parrot/parrot/commit/0a5881252112e368d383050588b567fece928ef5
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M include/parrot/runcore_trace.h
    M src/call/context.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/runcore/trace.c

  Log Message:
  -----------
  [gc] add trace_pmc_flags_dump

and use it within trace_pmc_dump and #1108, coro in wrong gen


  Commit: a4f280fb70d07423f262c7c0a760212508bcacaf
      
https://github.com/parrot/parrot/commit/a4f280fb70d07423f262c7c0a760212508bcacaf
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M config/gen/makefiles/root.in
    M t/dynoplibs/debug.t

  Log Message:
  -----------
  [cage] fixup 2 test errors with pmc flags


  Commit: d3b1edbf88c1888a7c72ec59163c1957ec2c6248
      
https://github.com/parrot/parrot/commit/d3b1edbf88c1888a7c72ec59163c1957ec2c6248
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/gc/gc_gms.c
    M src/runcore/trace.c

  Log Message:
  -----------
  [gc] dont stress the GC when tracing the GC

printf directly to stderr in trace_pmc_flags_dump, when not in the debugger


  Commit: a1798d40e1eaaf9493d59e4d694450c68ce4963b
      
https://github.com/parrot/parrot/commit/a1798d40e1eaaf9493d59e4d694450c68ce4963b
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/pmc/continuation.pmc

  Log Message:
  -----------
  [gc] add missing PackFileView to continuation.mark

also simplify the code a bit


  Commit: ef7f87ee32cf058d2edd193f78ba789b8718788e
      
https://github.com/parrot/parrot/commit/ef7f87ee32cf058d2edd193f78ba789b8718788e
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/call/context.c

  Log Message:
  -----------
  [gc] protect pcc_reuse_continuation from empty data

check for uninitialized continuation->data and allocate fresh then also.
simplify code a bit.


  Commit: 7c15e2eb3e228aeaf833f1ca8648a482b57ad76c
      
https://github.com/parrot/parrot/commit/7c15e2eb3e228aeaf833f1ca8648a482b57ad76c
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/gc/gc_gms.c

  Log Message:
  -----------
  [gc] check empty work_list, optimize gc_gms for -UMEMORY_DEBUG

do not call dummy functions in the common case during GC.

for -DMEMORY_DEBUG only:
protect from empty work_list in check_sanity, which can
occur after the GC was already unblocked.


  Commit: b487a6f17e8756cbd982e9c0748d20ea87cd9b49
      
https://github.com/parrot/parrot/commit/b487a6f17e8756cbd982e9c0748d20ea87cd9b49
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M config/auto/format.pm
    M config/gen/config_h/config_h.in
    M src/platform/darwin/sysmem.c
    M src/platform/generic/sysmem.c

  Log Message:
  -----------
  [gc] new uintval_fmt for size_t printf

memsize is unsigned for >2GB, and we need to print it properly.
otherwise it will print a negative number >4GB in i386


  Commit: 34576e6caf67657e8cb6514a3fa696a6b3695dea
      
https://github.com/parrot/parrot/commit/34576e6caf67657e8cb6514a3fa696a6b3695dea
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/gc/gc_gms.c
    M src/gc/gc_private.h

  Log Message:
  -----------
  [gc] WIP more GC_DEBUG_DETAIL macros, allow wrong Coros

observe illegal Coros during the GC, Object from wrong generation.

Inline gc_gms_seal_object and gc_gms_unseal_object. They are hot.


  Commit: 7ae900fe89683d1b71940d851b951ca5231de7eb
      
https://github.com/parrot/parrot/commit/7ae900fe89683d1b71940d851b951ca5231de7eb
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M src/pmc/callcontext.pmc
    M src/pmc/nci.pmc
    M src/pmc/task.pmc

  Log Message:
  -----------
  [pmc] simplify more mark methods

get the data once, and access the fields directly.
shorter and more cache friendly


  Commit: 847df25d5f9a43579cce6a6cebc986c5951ab93b
      
https://github.com/parrot/parrot/commit/847df25d5f9a43579cce6a6cebc986c5951ab93b
  Author: Reini Urban <[email protected]>
  Date:   2014-11-04 (Tue, 04 Nov 2014)

  Changed paths:
    M lib/Parrot/Test.pm
    M t/harness
    M t/stress/gc.t

  Log Message:
  -----------
  [test gc] add real gc stress tests #1108

stress test all GCs, under tight memory --gc-nursery-size=0.0001
and additional --gc-debug runs, with additonal StringBuilder stress via -t
and check the exit codes.
Properly fix SIGNAL detection and error output in Parrot::Test for exit_code_is.
Fails 14/20 tests.

t/harness: add existing TEST_PROG_ARGS to tests single tests, e.g.
  ulimit -Sv 60000
  TEST_PROG_ARGS='--gc-nursery-size=0.05 ' perl t/harness --gc-debug t/pmc/*.t


Compare: https://github.com/parrot/parrot/compare/8916cc9a4b9c...847df25d5f9a
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-commits

Reply via email to