Skip to content

Deprecate OSSpinLock#1367

Merged
interwq merged 1 commit intojemalloc:devfrom
interwq:osspin
Nov 14, 2018
Merged

Deprecate OSSpinLock#1367
interwq merged 1 commit intojemalloc:devfrom
interwq:osspin

Conversation

@interwq
Copy link
Contributor

@interwq interwq commented Nov 8, 2018

OSSpinLock is deprecated and we have os_unfair_lock support for Mac.

This solves #843

@interwq interwq changed the title [test only] Test pthread_mutex on MacOS Deprecate OSSpinLock Nov 13, 2018
@interwq
Copy link
Contributor Author

interwq commented Nov 13, 2018

Since OSSpinLock is deprecated, also Jason mentioned that pthread_mutex may cause reentrancy problems on Mac. Let's remove OSSpinLock but still prefer os_unfair_lock on Mac.

@interwq interwq merged commit 43f3b1a into jemalloc:dev Nov 14, 2018
@interwq interwq deleted the osspin branch November 14, 2018 16:44
nicktrav added a commit to nicktrav/cockroach that referenced this pull request Dec 8, 2022
Update jemalloc to point to the upstream 5.3.0 release, hosted on our
internal fork. This removes two custom patches that are no longer
required:

- Fix deadlock in multithreaded fork in OS X - fix upstreamed in
  jemalloc/jemalloc#954.
- Fix JEMALLOC_MUTEX_INIT_CB to only be set if OSS_PINLOCK is false -
  spinlock support was removed upstream in jemalloc/jemalloc#1367

Touches cockroachdb#83289.

Epic: CRDB-20293.

Release note: None.
nicktrav added a commit to nicktrav/cockroach that referenced this pull request Jan 5, 2023
Update jemalloc to point to the upstream 5.3.0 release, hosted on our
internal fork. This removes two custom patches that are no longer
required:

- Fix deadlock in multithreaded fork in OS X - fix upstreamed in
  jemalloc/jemalloc#954.
- Fix JEMALLOC_MUTEX_INIT_CB to only be set if OSS_PINLOCK is false -
  spinlock support was removed upstream in jemalloc/jemalloc#1367

Touches cockroachdb#83289.

Epic: CRDB-20293.

Release note: None.
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request Jan 6, 2023
93045: c-deps: update jemalloc to 5.3.0 r=rickystewart a=nicktrav

Update jemalloc to point to the upstream 5.3.0 release, hosted on our internal fork. This removes two custom patches that are no longer required:

- Fix deadlock in multithreaded fork in OS X - fix upstreamed in jemalloc/jemalloc#954.
- Fix JEMALLOC_MUTEX_INIT_CB to only be set if OSS_PINLOCK is false - spinlock support was removed upstream in jemalloc/jemalloc#1367

Touches #83289.

Closes #17013. Closes #83289.

Epic: CRDB-20293.

Release note (performance improvement): The memory allocator, `jemalloc` was updated to the latest available upstream version, 5.3.0, from 4.5.0. This update pulls in a number of upstream improvements, including reduced memory fragmentation for memory allocated outside of the Go runtime (i.e. the Pebble block and table caches), resulting in better memory utilization.

Co-authored-by: Nick Travers <travers@cockroachlabs.com>
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.

2 participants