HomePhabricator

Port of bitcoin/#10958 - leveldb patches

Description

Port of bitcoin/#10958 - leveldb patches

Summary:
Includes:

bitcoin-core/leveldb#2: Prefer std::atomic over MemoryBarrier (Pieter Wuille)
bitcoin-core/leveldb#5: Move helper functions out of sse4.2 object (Cory Fields)
bitcoin-core/leveldb#6: Fixes typo (Dimitris Tsapakidis)
bitcoin-core/leveldb#10: Clean up compile-time warnings (gcc 7.1) (Matt Corallo)
bitcoin-core/leveldb#11: fixup define checks. Cleans up some oopses from #5 (Cory Fields)

Removes many warnings on MacOSX of the form:

In file included from leveldb/util/cache.cc:10:
In file included from ./leveldb/port/port.h:14:
In file included from ./leveldb/port/port_posix.h:47:
./leveldb/port/atomic_pointer.h:55:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use
    std::atomic_thread_fence() from <atomic> instead [-Wdeprecated-declarations]
      OSMemoryBarrier();
      ^

The bitcoin core patches have been included in BU already by sickpig.

Test Plan: make check. Installed and running fine.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D584

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Aug 1 2017, 19:40
kyuupichanCommitted on Oct 5 2017, 13:11
kyuupichanPushed on Oct 5 2017, 13:11
Reviewer
Restricted Project
Differential Revision
D584: Port of bitcoin/#10958 - leveldb patches
Parents
rABC69311e16a624: Update to LevelDB 1.20
Branches
Unknown
Tags
Unknown

Event Timeline