1. 20 Aug, 2014 1 commit
  2. 19 Aug, 2014 1 commit
    • Dan Albert's avatar
      Expose android_set_abort_message(). · 1506fc17
      Dan Albert authored
      Removes the leading underscores from __android_set_abort_message() and
      moves its declaration into a public header file.
      
      Bug: 17059126
      Change-Id: I470c79db47ec783ea7a54b800f8b78ecbe7479ab
      (cherry picked from commit ce6b1abb)
      (cherry picked from commit 3a25ab95)
      1506fc17
  3. 18 Aug, 2014 3 commits
  4. 16 Aug, 2014 2 commits
  5. 15 Aug, 2014 3 commits
    • Dmitriy Ivanov's avatar
      d8e00769
    • Dmitriy Ivanov's avatar
      Keep symbols for linker · be4348e7
      Dmitriy Ivanov authored
      Bug: 17011146
      
      (cherry picked from commit ad5e8b50)
      
      Change-Id: Ib1d3f8d6d38af98586658e01ed1ec79d2c5b4d42
      be4348e7
    • Hans Boehm's avatar
      Have stdatomic.h punt to C++ atomic when possible · f0f66c02
      Hans Boehm authored
      This is an alternate, somewhat simpler, fix that makes it safe to
      include both <atomic> and <stdatomic.h> from C++ code in either order.
      It means that C code consistently uses one implementation of atomics
      and C++ another.  We still have to make sure that those two
      implementations interoperate correctly at runtime; in particular,
      any flavor of atomic object needs to be represented exactly like the
      underlying type, with the proper alignment constraint.
      
      Bug:17007799
      Change-Id: Iffcfc5220d8fa150f89dd083a121b24d23f268fc
      (cherry picked from commit 019d3958)
      f0f66c02
  6. 14 Aug, 2014 7 commits
  7. 13 Aug, 2014 1 commit
    • Dmitriy Ivanov's avatar
      Optimize symbol lookup · 8a84d383
      Dmitriy Ivanov authored
       Do not run symbol lookup on already visited soinfos
       Not taking into account already visited libraries
       dramatically slows down dlsym in cases when there
       are multiple occurrences of a large library in
       dependency tree.
      
      Bug: 16977077
      
      (cherry picked from commit 042426ba)
      
      Change-Id: I69d59e395e8112f119343e8a4d72fe31cd449f31
      8a84d383
  8. 12 Aug, 2014 1 commit
    • Dan Albert's avatar
      Hide __libc_malloc_dispatch. · d332bc68
      Dan Albert authored
      Now that -Bsymbolic is fixed, we can hide __libc_malloc_dispatch without
      breaking ASAN.
      
      Bug: 11156955
      Change-Id: Ia2fc9b046a74e666b33aa6c6c5435f70a63b8021
      d332bc68
  9. 10 Aug, 2014 1 commit
    • Elliott Hughes's avatar
      Fix our x86 PIC_PROLOGUE. · 72d7e667
      Elliott Hughes authored
      The old definition only worked for functions that didn't use numbered
      local labels. Upstream uses '666' not only as some kind of BSD in-joke,
      but also because there's little likelihood of any function having
      labels that high.
      
      There's a wider question about whether we actually want to go via the
      PLT at all in this code, but that's a question for another day.
      
      Bug: 16906712
      Change-Id: I3cd8ecc448b33f942bb6e783931808ef39091489
      72d7e667
  10. 09 Aug, 2014 1 commit
  11. 08 Aug, 2014 2 commits
  12. 07 Aug, 2014 1 commit
    • Elliott Hughes's avatar
      Android is all-PIC/PIE. · 43227c0b
      Elliott Hughes authored
      Clean up the x86/x86_64 assembler. The motivator (other than reducing
      confusion) was that asm.h incorrectly checked PIC rather than __PIC__.
      
      Bug: 16823325
      
      (cherry picked from commit 6b6364a7)
      
      Change-Id: I89ca57fa0eb34a36de6cb11ea85f71054fce709d
      43227c0b
  13. 06 Aug, 2014 1 commit
  14. 07 Aug, 2014 1 commit
    • Christopher Ferris's avatar
      Do a second key cleanup in pthread_exit. · 18d93f27
      Christopher Ferris authored
      During pthread_exit, the keys are cleaned. Unfortunately, a call to
      free occurs after the cleanup and the memory for some of the keys
      is recreated when using jemalloc. The solution is to do the key
      cleanup twice.
      
      Also, modify the pthread_detach__leak test to be less flaky
      when run on a jemalloc system.
      
      Bug: 16513133
      Change-Id: Ic17e8344bdc1ba053c4f5b6d827a4c19c57860c1
      18d93f27
  15. 06 Aug, 2014 12 commits
    • Elliott Hughes's avatar
      501eb513
    • Elliott Hughes's avatar
      6edf8985
    • Elliott Hughes's avatar
      Fix the tzdata update tools. · 90cb5ffb
      Elliott Hughes authored
      The recent libcore ZoneInfo changes mean that we can no longer
      compile libcore's ZoneInfo against the RI. Luckily, the field in
      our data file that we needed ZoneInfo for isn't actually used.
      This change removes our dependence on libcore.
      
      I've left the field in to avoid a file format change. We can remove
      the field if/when we next have a real need to bump the file format.
      
      Bug: 16168653
      Change-Id: Iedad2252c2b49f4d8bb2c7d9078b39b622444ca7
      90cb5ffb
    • Elliott Hughes's avatar
      Upgrade bionic to tzdata2014f. · 0dc2c1db
      Elliott Hughes authored
      From the release notes:
      
        Changes affecting future time stamps
      
          Russia will subtract an hour from most of its time zones on
          2014-10-26 at 02:00 local time.  (Thanks to Alexander Krivenyshev.)
          There are a few exceptions: Magadan Oblast (Asia/Magadan) and
          Zabaykalsky Krai are subtracting two hours; conversely, Chukotka
          Autonomous Okrug (Asia/Anadyr), Kamchatka Krai (Asia/Kamchatka),
          Kemerovo Oblast (Asia/Novokuznetsk), and the Samara Oblast and the
          Udmurt Republic (Europe/Samara) are not changing their clocks.  The
          changed zones are Europe/Kaliningrad, Europe/Moscow,
          Europe/Simferopol, Europe/Volgograd, Asia/Yekaterinburg, Asia/Omsk,
          Asia/Novosibirsk, Asia/Krasnoyarsk, Asia/Irkutsk, Asia/Yakutsk,
          Asia/Vladivostok, Asia/Khandyga, Asia/Sakhalin, and Asia/Ust-Nera;
          Asia/Magadan will have two hours subtracted; and Asia/Novokuznetsk's
          time zone abbreviation is affected, but not its UTC offset.  Two
          zones are added: Asia/Chita (split from Asia/Yakutsk, and also with
          two hours subtracted) and Asia/Srednekolymsk (split from
          Asia/Magadan, but with only one hour subtracted).  (Thanks to Tim
          Parenti for much of the above.)
      
        Changes affecting past time stamps
      
          China's five zones have been simplified to two, since the post-1970
          differences in the other three seem to have been imaginary.  The
          zones Asia/Harbin, Asia/Chongqing, and Asia/Kashgar have been
          removed; backwards-compatibility links still work, albeit with
          different behaviors for time stamps before May 1980.  Asia/Urumqi's
          1980 transition to UTC+8 has been removed, so that it is now at
          UTC+6 and not UTC+8.  (Thanks to Luther Ma and to Alois Treindl;
          Treindl sent helpful translations of two papers by Guo Qingsheng.)
      
          Some zones have been turned into links, when they differed from
          existing zones only for older UTC offsets where the data were likely
          invented.  These changes affect UTC offsets in pre-1970 time stamps
          only.  This is similar to the change in release 2013e, except this
          time for western Africa.  The affected zones are: Africa/Bamako,
          Africa/Banjul, Africa/Conakry, Africa/Dakar, Africa/Freetown,
          Africa/Lome, Africa/Nouakchott, Africa/Ouagadougou, Africa/Sao_Tome,
          and Atlantic/St_Helena.  This also affects the
          backwards-compatibility link Africa/Timbuktu.  (Thanks to Alan
          Barrett, Stephen Colebourne, Tim Parenti, and David Patte for
          reporting problems in earlier versions of this change.)
      
          Asia/Shanghai's pre-standard-time UT offset has been changed from
          8:05:57 to 8:05:43, the location of Xujiahui Observatory.  Its
          transition to standard time has been changed from 1928 to 1901.
      
          Asia/Taipei switched to JWST on 1896-01-01, then to JST on
          1937-10-01, then to CST on 1945-09-21 at 01:00, and did not observe
          DST in 1945.  In 1946 it observed DST from 05-15 through 09-30; in
          1947 from 04-15 through 10-31; and in 1979 from 07-01 through 09-30.
          (Thanks to Yu-Cheng Chuang.)
      
          Asia/Riyadh's transition to standard time is now 1947-03-14, not
          1950.
      
          Europe/Helsinki's 1942 fall-back transition was 10-04 at 01:00, not
          10-03 at 00:00.  (Thanks to Konstantin Hyppönen.)
      
          Pacific/Pago_Pago has been changed from UTC-11:30 to UTC-11 for the
          period from 1911 to 1950.
      
          Pacific/Chatham has been changed to New Zealand standard time plus
          45 minutes for the period before 1957, reflecting a 1956 remark in
          the New Zealand parliament.
      
          Europe/Budapest has several pre-1946 corrections: in 1918 the
          transition out of DST was on 09-16, not 09-29; in 1919 it was on
          11-24, not 09-15; in 1945 it was on 11-01, not 11-03; in 1941 the
          transition to DST was 04-08 not 04-06 at 02:00; and there was no DST
          in 1920.
      
          Africa/Accra is now assumed to have observed DST from 1920 through
          1935.
      
          Time in Russia before 1927 or so has been corrected by a few seconds
          in the following zones: Europe/Moscow, Asia/Irkutsk, Asia/Tbilisi,
          Asia/Tashkent, Asia/Vladivostok, Asia/Yekaterinburg,
          Europe/Helsinki, and Europe/Riga.  Also, Moscow's location has been
          changed to its Kilometer 0 point.  (Thanks to Vladimir Karpinsky for
          the Moscow changes.)
      
      Bug: 16168653
      Change-Id: I23827254bcf50dd07a2192ed34b02224d73e07a0
      0dc2c1db
    • Dan Albert's avatar
      Merge "Proper MB_CUR_MAX." into lmp-dev · bc0d65c1
      Dan Albert authored
      bc0d65c1
    • Dan Albert's avatar
      Proper MB_CUR_MAX. · 6035e6cc
      Dan Albert authored
      Previously this was hard coded to 4. This is only the case for UTF-8
      locales.
      
      As a side effect, this properly reports C.UTF-8 as the default locale
      instead of C.
      
      Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc
      (cherry picked from commit 1aec7c1a)
      6035e6cc
    • Dan Albert's avatar
    • Dan Albert's avatar
      Fix mbsrtowcs(3) src param for finished string. · 938a8008
      Dan Albert authored
      A mistake I made while cleaning this up the first time through.
      mbstrtowcs(3) sets the src param to null if it finishes the string.
      
      Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2
      (cherry picked from commit b6cc8e00)
      938a8008
    • Dan Albert's avatar
      Fixes build. · 40079b00
      Dan Albert authored
      This change somehow went missing from the vfork change.
      
      Change-Id: I807a2072080eac20601c694e85ba5723220289d8
      (cherry picked from commit 9eae8405)
      40079b00
    • Dan Albert's avatar
      Revert "Replaces vfork() implementation with fork()" · 5386a741
      Dan Albert authored
      We're getting cold feet on this one... let's put it back.
      
      This reverts commit 210331d9.
      
      Change-Id: I6b0d3c2b1dbf7f1dc9566979a91b7504c2189269
      (cherry picked from commit 6a918870)
      5386a741
    • Elliott Hughes's avatar
    • Dehao Chen's avatar
      Workaround b/16818336 which fails build under aggressive inlining. · 7aa27e1c
      Dehao Chen authored
      Change-Id: Ifcd596714c427a2ec39502b9c0af9082ded91884
      7aa27e1c
  16. 05 Aug, 2014 1 commit
  17. 06 Aug, 2014 1 commit