Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 21, 2012
  1. @petdance
Commits on Mar 6, 2012
  1. @petdance
  2. @petdance
Commits on Nov 16, 2011
  1. @petdance

    Use a proper NULL, not 0

    petdance authored
Commits on Nov 5, 2011
  1. @petdance
Commits on Nov 1, 2011
  1. @niner

    Add in missing pause() in outer runloop

    niner authored
    Without pause(), a sleep would busy wait
  2. @Whiteknight

    Remove the preemptive thread scheduling logic from the windows build.…

    Whiteknight authored
    … Parrot should build on windows (or get much closer now) but without preemptive green_threads support
Commits on Oct 29, 2011
  1. @Whiteknight

    rename enable_event_checking -> Parrot_runcore_enable_event_checking,…

    Whiteknight authored
    … disable_event_checking -> Parrot_runcore_disable_event_checking. Move the enable_preemption and enable_scheduling flags from global variables into scheduler attributes
Commits on Oct 28, 2011
  1. @Whiteknight

    rename Parrot_task_current to Parrot_cx_current_task for pleasantness…

    Whiteknight authored
    …. Remove some old, dead, message-related code.
  2. @Whiteknight

    remove CX_DEBUG flag and all related debugging messages. Most of thes…

    Whiteknight authored
    …e are old and not in places that make sense for the current system. We can re-add in debugging/dumping functionality later as needed
  3. @Whiteknight

    code cleanup in scheduler.c. Add const to give the optimizer a fighti…

    Whiteknight authored
    …ng chance. Remove some dead code
Commits on Oct 27, 2011
  1. @Whiteknight

    Make sure to GC mark interp->cur_task. Add GC write barriers in sched…

    Whiteknight authored
    …uler.c where the internals of Tasks et al. are modified directly instead of going through safe vtable wrappers.
Commits on Oct 26, 2011
  1. @niner

    Reworked the zero overhead patch to reduce overhead

    niner authored
    moritz++ reported a 6 % performance loss with green_threads. Suspect it
    to be the enabled scheduler timer tick as soon as some alarm is active.
  2. @niner

    Clean a nested comment start

    niner authored
Commits on Oct 14, 2011
  1. @niner

    Enable preemption only when more than one task is active.

    niner authored
    We enable the scheduler alarm and enable_scheduling only in situations
    where more than one task is in the queue. This way, there is no
    preemption overhead in the common single-task case.
Commits on Oct 9, 2011
  1. @niner
Commits on Oct 7, 2011
  1. @niner

    Re-set alarm if it fired before quantum is done

    niner authored
    An alarm can fire before the current task's quantum is done. In this case we have to re-set the preemption alarm. Otherwise the scheduler would never be run again.
    
    New coretest status:
    
    t/pmc/exception.t                 (Wstat: 11 Tests: 53 Failed: 0)
      Non-zero wait status: 11
    t/pmc/timer.t                     (Wstat: 256 Tests: 6 Failed: 1)
      Failed test:  6
      Non-zero exit status: 1
      Parse errors: Bad plan.  You planned 9 tests but ran 6.
    t/src/threads_io.t                (Wstat: 0 Tests: 4 Failed: 0)
      Parse errors: Tests out of sequence.  Found (3) but expected (1)
                    Tests out of sequence.  Found (1) but expected (2)
                    Tests out of sequence.  Found (2) but expected (3)
    t/src/embed/api.t                 (Wstat: 512 Tests: 8 Failed: 2)
      Failed tests:  2, 8
      Non-zero exit status: 2
  2. @niner

    Readd alarm handling to the outer runloop

    niner authored
    Current test status:
    t/pmc/exception.t                 (Wstat: 11 Tests: 53 Failed: 0)
      Non-zero wait status: 11
    t/pmc/task.t                      (Wstat: 9 Tests: 9 Failed: 0)
      Non-zero wait status: 9
      Parse errors: Bad plan.  You planned 10 tests but ran 9.
    t/pmc/timer.t                     (Wstat: 256 Tests: 6 Failed: 1)
      Failed test:  6
      Non-zero exit status: 1
      Parse errors: Bad plan.  You planned 9 tests but ran 6.
    t/src/checkdepend.t               (Wstat: 1536 Tests: 161 Failed: 6)
      Failed tests:  46-47, 69, 90, 143, 146
      Non-zero exit status: 6
    t/src/threads_io.t                (Wstat: 0 Tests: 4 Failed: 0)
      Parse errors: Tests out of sequence.  Found (3) but expected (1)
                    Tests out of sequence.  Found (1) but expected (2)
                    Tests out of sequence.  Found (2) but expected (3)
    t/src/embed/api.t                 (Wstat: 512 Tests: 8 Failed: 2)
      Failed tests:  2, 8
      Non-zero exit status: 2
  3. @niner
Commits on Oct 6, 2011
  1. @niner

    Fix preemption and hookup the scheduler to Parrot_pf_execute_bytecode…

    niner authored
    …_program
    
    t/op/time.t                       (Wstat: 0 Tests: 4 Failed: 0)
      Parse errors: Bad plan.  You planned 19 tests but ran 4.
    t/pmc/alarm.t                     (Wstat: 0 Tests: 6 Failed: 0)
      Parse errors: Bad plan.  You planned 7 tests but ran 6.
    t/pmc/exception.t                 (Wstat: 11 Tests: 53 Failed: 0)
      Non-zero wait status: 11
    t/pmc/nci.t                       (Wstat: 2304 Tests: 60 Failed: 9)
      Failed tests:  37-45
      Non-zero exit status: 9
    t/pmc/task.t                      (Wstat: 0 Tests: 3 Failed: 0)
      Parse errors: Bad plan.  You planned 10 tests but ran 3.
    t/pmc/timer.t                     (Wstat: 1024 Tests: 6 Failed: 4)
      Failed tests:  3-6
      Non-zero exit status: 4
      Parse errors: Bad plan.  You planned 9 tests but ran 6.
    t/pir/timer_exit.t                (Wstat: 0 Tests: 0 Failed: 0)
      Parse errors: Bad plan.  You planned 1 tests but ran 0.
    t/src/checkdepend.t               (Wstat: 1536 Tests: 161 Failed: 6)
      Failed tests:  46-47, 69, 90, 143, 146
      Non-zero exit status: 6
    t/src/threads_io.t                (Wstat: 0 Tests: 2 Failed: 0)
      Parse errors: Tests out of sequence.  Found (3) but expected (1)
                    Tests out of sequence.  Found (1) but expected (2)
                    Bad plan.  You planned 4 tests but ran 2.
    t/src/embed/api.t                 (Wstat: 512 Tests: 8 Failed: 2)
      Failed tests:  2, 8
      Non-zero exit status: 2
Commits on Sep 25, 2011
  1. @niner
  2. @niner

    Merge branch 'master' into green_threads

    niner authored
    Conflicts:
    	MANIFEST
    	config/gen/makefiles/root.in
    	include/parrot/interpreter.h
    	include/parrot/oplib/ops.h
    	include/parrot/opsenum.h
    	include/parrot/scheduler.h
    	include/parrot/scheduler_private.h
    	include/parrot/thr_pthread.h
    	include/parrot/thread.h
    	src/interp/inter_create.c
    	src/ops/core_ops.c
    	src/pmc/parrotinterpreter.pmc
    	src/pmc/scheduler.pmc
    	src/pmc/task.pmc
    	src/pmc/timer.pmc
    	src/scheduler.c
    	src/thread.c
    	t/pmc/timer.t
Commits on Sep 24, 2011
  1. @niner

    Merge branch 'gsoc_threads' into green_threads

    niner authored
    Conflicts:
    	MANIFEST
    	config/gen/makefiles/root.in
    	include/parrot/extend.h
    	include/parrot/interpreter.h
    	include/parrot/oplib/core_ops.h
    	include/parrot/oplib/ops.h
    	include/parrot/opsenum.h
    	include/parrot/platform_interface.h
    	include/parrot/scheduler.h
    	include/parrot/thr_pthread.h
    	include/parrot/thread.h
    	src/embed.c
    	src/gc/api.c
    	src/gc/mark_sweep.c
    	src/io/unix.c
    	src/ops/core_ops.c
    	src/ops/experimental.ops
    	src/packfile.c
    	src/pmc/parrotthread.pmc
    	src/pmc/scheduler.pmc
    	src/pmc/task.pmc
    	src/pmc/timer.pmc
    	src/runcore/trace.c
    	src/scheduler.c
    	t/native_pbc/integer.pbc
    	t/native_pbc/number.pbc
    	t/native_pbc/string.pbc
    	t/pmc/parrotthread.t
    	t/pmc/scheduler.t
    	t/pmc/task.t
    	t/pmc/threads.t
    	t/pmc/timer.t
Commits on Sep 21, 2011
  1. @Whiteknight
Commits on Sep 19, 2011
  1. @NotFound
Commits on Sep 14, 2011
  1. @Whiteknight
Commits on Sep 7, 2011
  1. @NotFound

    change handling of timers in the scheduler to avoid cloning on repeat…

    NotFound authored
    …ing.
    
    That may affect its precision, but the docs already says that there are
    no guarantees about it.
  2. @NotFound
  3. @NotFound
  4. @Whiteknight
Commits on Sep 6, 2011
  1. @cotto
Commits on Aug 28, 2011
  1. @Whiteknight

    Remove references to remaining thread-related functions in the code. …

    Whiteknight authored
    …Parrot builds and passes most tests that aren't specifically for threading features
  2. @Whiteknight
Commits on Aug 25, 2011
  1. @Whiteknight

    Remove lots of references to thread ode. The build progresses pretty …

    Whiteknight authored
    …far, but does not link because of a few missing references I need to deal with
Commits on Jun 20, 2011
  1. @soh-cah-toa
Something went wrong with that request. Please try again.