Permalink
Commits on Jan 13, 2010
  1. Merge branch 'bg/otp_build-improvements' into ccase/r13b04_dev

    Erlang/OTP committed Jan 13, 2010
    * bg/otp_build-improvements:
      Fix spelling, remove obsolete command
      Support updating preloaded files in a git repository
      Support updating the primary bootstrap in a git repository
      Determine which VCS is being used
      stdlib makefile: Add explicit rule
    
    OTP-8369: bg/otp_build-improvements
Commits on Jan 12, 2010
  1. Merge branch 'jv/binary_to_term-opts' into ccase/r13b04_dev

    Erlang/OTP committed Jan 12, 2010
    * jv/binary_to_term-opts:
      document ErtsExternalDist flags and CON_ID mask
      add options to binary_to_term
    
    OTP-8367  There is new erlang:binary_to_binary/2 BIF that takes an option
              list. The option safe can be used to prevent creation of
              resources that are not garbage collected (such as atoms). (Thanks
              to Jayson Vantuyl.)
  2. Merge branch 'tc/premodern-fpe' into ccase/r13b04_dev

    Erlang/OTP committed Jan 12, 2010
    * tc/premodern-fpe:
      Add -D_XOPEN_SOURCE to CPPFLAGS on Darwin platforms
      Test for reliable fpes on Darwin platforms without DARWIN_MODERN_MCONTEXT
    
    OTP-8368  The configure test for reliable floating point exceptions has
              been update to work on modern versions of Mac OS X. (Thanks to
              Trannie Carter.)
  3. Support updating preloaded files in a git repository

    bjorng committed Jan 6, 2010
    The commands in otp_build for updating the checked-in preloaded
    modules only works in ClearCase.
    
    Add support updating the preloaded files in a git repository as well.
    
    Check the $version_controller variable so that we can have
    "otp_build update_preloaded" do different things depending on
    whether it is run in a ClearCase view or a git repository.
    
    When run in a git repository, "otp_build update_preloaded" will
    update and commit the preloaded modules (to undo the updating of
    the preloaded modules, do "git reset --hard HEAD^").
    
    Update the usage text to only show the commands relevant to
    the kind of VCS it is being run in.
  4. Support updating the primary bootstrap in a git repository

    bjorng committed Dec 2, 2009
    The commands in otp_build for updating the checked-in primary
    bootstrap only works in ClearCase.
    
    Add support updating the bootstrap in a git repository as well.
    
    Check the $version_controller variable so that we can have
    "otp_build update_primary" do different things depending on
    whether it is run in a ClearCase view or a git repository.
    
    When run in a git repository, "otp_build update_primary" will
    update and commit the bootstrap (to undo the updating of the
    bootstrap, do "git reset --hard HEAD^").
    
    Update the usage text to only show the commands relevant to
    the kind of VCS it is being run in.
  5. Determine which VCS is being used

    bjorng committed Dec 2, 2009
    We want to add the ability for otp_build to determine which
    version control system (VCS) is being used, so that the
    commands for updating the primary bootstrap and pre-loaded
    modules can be updated to do different things depending on
    the VCS.
    
    In the beginning of the otp_build script, set the variable
    "version_controller"  to either "none" (for no VCS), "git",
    or "clearcase".
  6. stdlib makefile: Add explicit rule

    bjorng committed Dec 9, 2009
    When building a primary bootstrap in a git repository, the file
    bootstrap/lib/stdlib/egen/erl_parse.erl would not get updated.
    With clearmake, this file is updated.
    
    Adding an explicit rule for the file make it it work with GNU Make.
    
    While at it, remove an out-commented rule.
Commits on Jan 11, 2010
  1. Merge branch 'kj/epmd-port2resp-trunc-extra' into ccase/r13b04_dev

    Erlang/OTP committed Jan 11, 2010
    * kj/epmd-port2resp-trunc-extra:
      Handle "extra" field according to specs in ALIVE2_REQ and PORT2_RESP.
    
    OTP-8361  EPMD now correctly handles the extra data field which can be
              given in the ALIVE2_REQ request and retrieved in the PORT2_RESP
              response. (Thanks to Klas Johansson.)
  2. Merge branch 'dgud/dbg_mac_menu' into ccase/r13b04_dev

    Erlang/OTP committed Jan 11, 2010
    * dgud/dbg_mac_menu:
      Dbg: Expand the module listbox when window grows.
      Dbg: Cut variable bindings after 80 chars.
      Dbg: Fixed documentation links to the new index.html
      Dbg Fixed mac gui issues
    
    OTP-8346  Miscellaneous corrections of the WX version of the debugger.
Commits on Jan 8, 2010
  1. document ErtsExternalDist flags and CON_ID mask

    jvantuyl committed with bjorng Jan 8, 2010
    In the ErtsExternalDist structure, the flags field holds a combination of flags
    (tagged into the high bits) and the connection ID (in the low bits).  This
    wasn't clearing indicated anywhere.  This patch adds a comment before the flags
    and mask that indicates their use and relation to each other.  This will help
    guide people through the code and reduce the likelihood that someone will add a
    flag without adjusting the mask.
  2. add options to binary_to_term

    jvantuyl committed with bjorng Jan 6, 2010
    term_to_binary and binary_to_term are powerful tools that can be used easily in
    lieu of a custom binary network protocol.  Unfortunately, carefully crafted
    data can be used to exhaust the memory in an Erlang node by merely attempting
    to decode binaries.  This makes it unsafe to receive data from untrusted
    sources.
    
    This is possible because binary_to_term/1 will allocate new atoms and new
    external function references.  These data structures are not garbage collected.
    
    This patch implements the new form of binary_to_term that takes a list of
    options, and a simple option called 'safe'.  If specified, this option will
    cause decoding to fail with a badarg error if an atom or external function
    reference would be allocated.
    
    In the general case, it will happily decode any Erlang term other than those
    containing new atoms or new external function references.  However, fun, pid,
    and ref data types can embed atoms.  They might fail to decode if one of these
    embedded atoms is new to the node.  This may be an issue if encoded binaries
    are transferred between nodes or persisted between invocations of Erlang.
Commits on Jan 7, 2010
  1. OTP-8358 A race bug affecting pg2:get_local_members/1 has been fixed.…

    uabboli committed with Erlang/OTP Jan 7, 2010
    … The
    
              bug was introduced in R13B03.
Commits on Jan 6, 2010
  1. Update preloaded files

    bjorng committed with Erlang/OTP Jan 6, 2010
  2. Mark concat_binary/1 as deprecated

    bjorng committed with Erlang/OTP Jan 6, 2010
Commits on Jan 4, 2010
  1. Old release notes removed

    Niclas Eklund committed with Erlang/OTP Dec 23, 2009
Commits on Dec 23, 2009
  1. Updated version and release note

    Niclas Eklund committed with Erlang/OTP Dec 23, 2009
Commits on Dec 21, 2009
  1. Handle "extra" field according to specs in ALIVE2_REQ and PORT2_RESP.

    klajo committed Dec 20, 2009
    Don't let the length field pollute the value of the "extra" field in
    ALIVE2_REQ.  Extra was read, starting at the second byte of the two
    byte length field, which meant that it was included in the result and
    the last byte of the value was skipped:
    
        if "extra" is <<1, 2>>, return <<0, 2, 1, 2>> not <<0, 2, 2, 1>>
    
    Increment the offset correctly when sending PORT2_RESP, in order to
    make sure the "extra" field won't be truncated:
    
        if "extra" is <<>>, return <<0, 0>> not <<0>>
        if "extra" is <<1, 2>>, return <<0, 2, 1, 2>> not <<0, 2, 1>>
    
    Allow null characters in "extra".
  2. Order version fields in documentation for ALIVE2_REQ correctly

    klajo committed with Erlang/OTP Dec 21, 2009
    Place HighestVersion before LowestVersion, since that is what the
    source code does (erl_epmd.erl and epmd_srv.c).
  3. Fixed missing eix file

    Niclas Eklund committed with Erlang/OTP Dec 21, 2009
  4. Removed superfluous backslash

    Niclas Eklund committed with Erlang/OTP Dec 21, 2009
  5. Removed 011 in documentation files

    Niclas Eklund committed with Erlang/OTP Dec 21, 2009
Commits on Dec 18, 2009
  1. Dbg: Cut variable bindings after 80 chars.

    dgud committed with bjorng Dec 16, 2009
    This is an optimization to avoid sending huge terms to the gui
    just to step by them and update variables again.
    
    Even better would be to only update if necessary.
  2. Dbg Fixed mac gui issues

    dgud committed with bjorng Dec 16, 2009
  3. Add -D_XOPEN_SOURCE to CPPFLAGS on Darwin platforms

    nottwo committed with bjorng Dec 8, 2009
    ucontext routines are deprecated in Snow Leopard and defining
    _XOPEN_SOURCE is the suggested remedy.
  4. Test for reliable fpes on Darwin platforms without DARWIN_MODERN_MCON…

    nottwo committed with bjorng Dec 3, 2009
    …TEXT
    
    The mcontext_t structure changed between Tiger & Leopard and the erts
    configure script doesn't take this into account when testing for
    reliable floating point exceptions.  HiPE is not enabled when reliable
    fpes are not detected.
    
    The PPC test preserves the pre-modern mcontext_t and so builds on Tiger,
    but I suspect that PPC/Leopard is broken.  I don't have the header files
    to check modern PPC mcontext_t so I haven't changed that part of the test.
  5. Merge branch 'dgud/emacs-improvements' into ccase/r13b04_dev

    Erlang/OTP committed Dec 18, 2009
    * dgud/emacs-improvements:
      Emacs: Added indentation inside parenthesis
      More -spec indentation fixes.
  6. Emacs: Added indentation inside parenthesis

    dgud committed Dec 18, 2009
    Used in records or tuple creation:
    -record(record3, {a = 8#42423 bor
    		      8#4234,
    		  b = 8#5432
    		      bor 2#1010101
    		  c = 123 +
    		      234,
    		  d}).
    
    and in functions calls
        call(2#42423 bor
    	     #4234,
    	 2#5432,
    	 other_arg),
Commits on Dec 17, 2009
  1. More -spec indentation fixes.

    dgud committed Dec 17, 2009
  2. Merge branch 'at/windows_build_fixes' into ccase/r13b04_dev

    Erlang/OTP committed Dec 17, 2009
    * at/windows_build_fixes:
      Updated README.win32 for compiling with VS2008 and issues with mc.exe
      Allow mc.sh and rc.sh to work when path to mc/rc.exe has spaces
    
    OTP-8345  Building on Windows will now work if the paths to mc.exe and
              rc.exe contain spaces. The README.win32 file has been updated
              with some information about building using Visual Studio 2008.
              (Thanks to Andrew Thompson.)
  3. Send up AssocID as unsigned

    bjorng committed with Erlang/OTP Dec 17, 2009
    It must be unsigned so that prim_inet will not reject
    when it is sent down again.
    
    (Suggested fix by Raimo for a bug reported by Simon Cornish.)
  4. Fix duplicate ei_tracelevel symbol

    psyeugenic committed with Erlang/OTP Dec 17, 2009
    The symbol ei_tracelevel was not declared extern which could
    crash the linking step on some compilers.
    
    Updated .gitignore to ignore object files in erl_interface.
Commits on Dec 16, 2009
  1. Add a link to EEP8

    bjorng committed with Erlang/OTP Dec 16, 2009
    Suggested by Vlad Dumitrescu.