Skip to content

Conversation

DesWurstes
Copy link

It said:

./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 upstream LevelDB already replaced it with std::atomic_thread_fence(std::memory_order_seq_cst);

In addition, I found the definition of OSMemoryBarrier(), it calls the same function:

OSATOMIC_INLINE
void
OSMemoryBarrier(void)
{
	OSATOMIC_STD(atomic_thread_fence)(OSATOMIC_STD(memory_order_seq_cst));
}

@ken2812221
Copy link

utACK 7d9b387

@laanwj
Copy link
Member

laanwj commented Jan 16, 2019

utACK (though we should probably update from upstream, if this is fixed upstream?)

@fanquake
Copy link
Member

Upstream has merged google@594cc98, and there is still google#449 open.

@laanwj
Copy link
Member

laanwj commented Nov 6, 2019

I'd really prefer updating to upstream (#25) instead of carrying more patches, which will make future upstream updates even more involved.

@laanwj laanwj closed this Nov 6, 2019
@laanwj laanwj mentioned this pull request Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants