Commits on Feb 19, 2012
  1. Roll version 1.0.1

    Jared Morrow committed Feb 19, 2012
Commits on Dec 29, 2011
  1. Merge pull request #15 from basho/bz1283-thread-safety

    slfritchie committed Dec 29, 2011
    BUG 1283: erlang_js uses non-thread-safe driver function
Commits on Dec 16, 2011
  1. Merge branch 'klm-use-minor-version'

    Kelly McLaughlin committed Dec 16, 2011
Commits on Dec 14, 2011
  1. Change improper use of ERL_DRV_EXTENDED_MAJOR_VERSION to the correct …

    Kelly McLaughlin committed Dec 14, 2011
Commits on Nov 13, 2011
  1. BUG 1283: erlang_js uses non-thread-safe driver function

    slfritchie committed Nov 13, 2011
    Using `driver_output_term()` in an async worker pool thread
    is a big no-no.  A solution is to use `driver_output_term()`
    in the `ready_async()` function, which executes in the proper
    thread context.
    Tested via:
    * Run with a debug SMP build of the Erlang VM.  There are no
      `beam/global.h:1345: Lock check assertion` errors.
    * Use the following to run a large number of Map/Reduce jobs to
      try to provoke a memory leak.
    The following can be cut-and-paste'd into a Riak console/shell.
    On my MBP, it runs for (very roughly) an hour.  Perhaps it should
    run even longer to try to find very small memory leaks?
        {ok, C} = riak:local_client().
        [C:put(riak_object:new(<<"test">>, list_to_binary(integer_to_list(X)), list_to_binary(integer_to_list(X)))) || X <- lists:seq(1,500)].
        [C:put(riak_object:new(<<"test">>, list_to_binary(integer_to_list(X)) ,<<"98123489123498123498123498123893489712348974123789432789234178942318794213897234178912348791234789412378923417894123789412378941237894123789412387943128794312879123478941237894123789412378941239781243789213487914237891423789142378914234">>)) || X <- lists:seq(1,250)].
        io:format("Start time = ~p ~p\n", [time(), now()]), [ spawn(fun() -> {ok, C2} = riak:local_client(), [{ok,[_]} = C2:mapred_bucket(<<"test">>, [{map, {jsfun, <<"Riak.mapValuesJson">>}, none, false}, {reduce, {jsfun, <<"Riak.reduceSum">>}, none, true}]) || _ <- lists:seq(1,6*15)] , if YY == 1 -> os:cmd("say I am done now"), io:format("End time = ~p ~p\n", [time(), now()]); true -> ok end end) || YY <- lists:seq(1,200)].
Commits on Nov 9, 2011
  1. Merge pull request #11 from basho/adt-bsd-support

    dizzyd committed Nov 9, 2011
    Add BSD support to erlang_js
Commits on Oct 5, 2011
  1. Add BSD support to erlang_js

    Vagabond committed Apr 7, 2011
    This patch adds .mk files for FreeBSD, NetBSD, OpenBSD and DragonFlyBSD.
    It also patches some nspr files so that nspr builds correctly for the
    BSDs as well.
    To workaround the hardcoded invocation of 'make' in rebar.config, the
    Makefile has been renamed GNUmakefile and a new BSD compatible stub
    Makefile has been added. Additionally, instead of using make -C, a new
    Makefile target has been added to both Makefiles, 'c_src' which does the
    directory change as part of the make rule. This fixes issues where BSD
    make does not support the -C option.
    $(MAKE) was not used, because we can not gurantee that the user built
    the top-level repo (eg riak) by using (g)make instead of calling rebar
    compile. Also, its unclear if rebar even supports the use of $(MAKE) in
    hook commands.
Commits on Sep 7, 2011
  1. Roll version 1.0.0

    Jared Morrow committed Sep 7, 2011
Commits on Aug 4, 2011
  1. Merge pull request #14 from basho/adt-readd-rebar

    Vagabond committed Aug 4, 2011
    Re-add rebar to the repository temporarily
  2. Re-add rebar to the repository temporarily

    Vagabond committed Aug 4, 2011
    This is only temporarily until the CI system handles the new
    setup correctly.
Commits on Jul 5, 2011
  1. Update

    dizzyd committed Jul 5, 2011
  2. Fix rebar deprecation warnings

    tuncer committed with dizzyd Apr 21, 2011
Commits on Apr 22, 2011
  1. Bump to 0.6.1

    Vagabond committed Apr 22, 2011
  2. Move the call to end_request to before the context is destroyed

    Vagabond committed Apr 22, 2011
    Fixes az://322
    The way the code was on sm_stop, the driver's shutdown routine, was
    destroying the VM context before calling end_request, which was
    operating on the context. This simple change simply calls end_request
    before the context is destroyed.
Commits on Apr 8, 2011
  1. bumping to 0.6.0

    Bryan Fink committed Apr 8, 2011
Commits on Apr 5, 2011
  1. Slight refactoring of the on_branch function.

    Kelly McLaughlin committed Apr 5, 2011
  2. When stopping a Spidermonkey VM context make sure any executing JS fu…

    Kelly McLaughlin committed Apr 4, 2011
    …nctions are terminated before beginning to clean up memory.
Commits on Apr 4, 2011
Commits on Apr 2, 2011
Commits on Mar 30, 2011
  1. Add regression test for embedded error properties in return values

    Kelly McLaughlin committed Mar 30, 2011
    from javascript functions.
  2. Treat return values from sm_eval as errors only if the

    Kelly McLaughlin committed Mar 30, 2011
    top-level property is "error" or the return value is
    a list whose only entry is the tuple {"error":"notfound"}.
Commits on Mar 16, 2011
  1. Include eunit headers only when necessary

    lemenkov committed with dizzyd Jan 28, 2011
    Signed-off-by: Peter Lemenkov <>
  2. Update/rewrite README.

    seancribbs committed with dizzyd Feb 17, 2011
Commits on Feb 16, 2011
  1. Update to the latest version of Douglas Rockford's json2.js that fixes

    Kelly McLaughlin committed Feb 16, 2011
    a JSON parsing bug.
Commits on Jan 5, 2011
  1. Bumping to 0.5.0

    dizzyd committed Jan 5, 2011
  2. Adding basic ignore file

    dizzyd committed Jan 5, 2011
Commits on Nov 29, 2010
  1. Fix spec for js_driver:new/3

    dreverri committed Nov 29, 2010
Commits on Sep 21, 2010
  1. Bumping vsn to reflect fixes for bz #706

    Kevin Smith committed Sep 21, 2010