Commit Graph

  • 7c22ea7a93 Only run test/integration/sdallocx non-reentrantly. David Goldblatt 2017-07-24 12:56:02 -07:00
  • e6aeceb606 Logging: log using the log var names directly. David Goldblatt 2017-07-24 12:29:28 -07:00
  • b28f31e7ed Split out cold code path in newImpl Qinfan Wu 2017-07-24 11:59:29 -07:00
  • a9f7732d45 Logging: allow logging with empty varargs. David Goldblatt 2017-07-21 13:34:45 -07:00
  • aa6c282137 Validates fd before calling fcntl Y. T. Chung 2017-07-21 21:40:29 +08:00
  • e215a7bc18 Add entry and exit logging to all core functions. David T. Goldblatt 2017-07-19 18:05:28 -07:00
  • 9761b449c8 Add a logging facility. David T. Goldblatt 2017-07-19 16:36:46 -07:00
  • 0975b88dfd Fall back to FD_CLOEXEC when O_CLOEXEC is unavailable. Y. T. Chung 2017-07-20 23:02:23 +08:00
  • fb6787a78c Add a test of behavior under multi-threaded forking. David Goldblatt 2017-07-10 13:19:31 -07:00
  • 0a4f5a7eea Fix deadlock in multithreaded fork in OS X. David Goldblatt 2017-07-10 14:05:33 -07:00
  • 3f5049340e Allow toolchain to determine nm Tamir Duberstein 2017-07-06 15:04:17 -04:00
  • ef55006c1d dumpbin doesn't exist in mingw Tamir Duberstein 2017-07-06 15:14:48 -04:00
  • f9dfb8db73 whitespace Tamir Duberstein 2017-07-06 14:50:55 -04:00
  • aa44ddbcdd Fix a typo. Jason Evans 2017-07-02 17:55:52 -07:00
  • 896ed3a8b3 Merge branch 'dev' Jason Evans 2017-07-01 17:44:01 -07:00
  • 284edf02b0 Update ChangeLog for 5.0.1. Jason Evans 2017-07-01 17:12:05 -07:00
  • cb032781bd Add extent_grow_mtx in pre_ / post_fork handlers. Qi Wang 2017-06-29 16:01:35 -07:00
  • 2b31cf5bd2 Enforce minimum autoconf version (currently 2.68). Jason Evans 2017-06-29 13:56:22 -07:00
  • c99e570a48 Make sure LG_PAGE <= LG_HUGEPAGE. Jason Evans 2017-06-23 12:35:17 -07:00
  • aa363f9388 Fix pthread_sigmask() usage to block all signals. Qi Wang 2017-06-26 11:17:45 -07:00
  • 57beeb2fcb Switch ctl to explicitly use tsd instead of tsdn. Qi Wang 2017-06-22 18:58:40 -07:00
  • 425463a446 Check arena in current context in pre_reentrancy. Qi Wang 2017-06-22 16:18:30 -07:00
  • d6eb8ac8f3 Set reentrancy when invoking customized extent hooks. Qi Wang 2017-06-22 15:36:41 -07:00
  • d49ac4c709 Fix assertion typos. Jason Evans 2017-06-23 10:40:02 -07:00
  • a3f4977217 Add thread name for background threads. Qi Wang 2017-06-23 09:58:35 -07:00
  • 52fc887b49 Avoid inactivity_check within background threads. Qi Wang 2017-06-22 13:57:50 -07:00
  • 37f3fa0941 Mask signals during background thread creation. Jason Evans 2017-06-19 20:35:33 -07:00
  • d35c037e03 Clear tcache_ql after fork in child. Qi Wang 2017-06-19 21:19:15 -07:00
  • 9b1befabbb Add minimal initialized TSD. Qi Wang 2017-06-15 16:53:22 -07:00
  • ae93fb08e2 Pass tsd to tcache_flush(). Qi Wang 2017-06-15 15:16:18 -07:00
  • 84f6c2cae0 Log decay->nunpurged before purging. Qi Wang 2017-06-14 18:44:13 -07:00
  • a4d6fe73cf Only abort on dlsym when necessary. Qi Wang 2017-06-14 12:12:23 -07:00
  • bdcf40a620 Add alloc hook test in test/integration/extent. Qi Wang 2017-06-13 16:35:35 -07:00
  • d955d6f2be Fix extent_hooks in extent_grow_retained(). Qi Wang 2017-06-13 16:16:33 -07:00
  • 5018fe3f09 Merge branch 'dev' Jason Evans 2017-06-13 12:49:58 -07:00
  • ba29113e5a Update MSVC project files. Jason Evans 2017-06-13 11:01:24 -07:00
  • aae8fd95fb Update ChangeLog for 5.0.0. Jason Evans 2017-06-09 09:41:09 -07:00
  • bff8db439c Update copyright dates. Jason Evans 2017-06-05 13:34:32 -07:00
  • 813643c6a7 Prevent background threads from running in post_reset(). Qi Wang 2017-06-11 11:40:59 -07:00
  • 394df9519d Combine background_thread started / paused into state. Qi Wang 2017-06-09 15:45:25 -07:00
  • b83b5ad44a Not re-enable background thread after fork. Qi Wang 2017-06-09 00:00:48 -07:00
  • 464cb60490 Move background thread creation to background_thread_0. Qi Wang 2017-06-08 22:46:31 -07:00
  • 13685ab1b7 Normalize background thread configuration. Jason Evans 2017-06-08 22:07:21 -07:00
  • 94d655b8bd Update a UTRACE() size argument. Jason Evans 2017-06-08 12:55:59 -07:00
  • faaf458bad Remove redundant typedefs. Jason Evans 2017-06-08 12:19:29 -07:00
  • 5642f03cae Add internal tsd for background_thread. Qi Wang 2017-06-07 16:12:50 -07:00
  • 73713fbb27 Drop high rank locks when creating threads. Qi Wang 2017-06-07 15:49:09 -07:00
  • 00869e39a3 Make tsd no-cleanup during tsd reincarnation. Qi Wang 2017-06-06 21:44:39 -07:00
  • 29c2577ee0 Remove assertions on extent_hooks being default. Qi Wang 2017-06-03 17:00:48 -07:00
  • 3a813946fb Take background thread lock when setting extent hooks. Qi Wang 2017-06-02 16:27:05 -07:00
  • 530c07a45b Set reentrancy level to 1 during init. Qi Wang 2017-05-31 15:21:10 -07:00
  • 340071f0cf Set isthreaded when enabling background_thread. Qi Wang 2017-06-01 12:52:09 -07:00
  • c84ec3e9da Fix background thread creation. Qi Wang 2017-06-01 00:04:56 -07:00
  • fd0fa003e1 Test with background_thread:true. Jason Evans 2017-05-31 11:56:31 -07:00
  • b511232fcd Refactor/fix background_thread/percpu_arena bootstrapping. Jason Evans 2017-05-31 16:45:14 -07:00
  • 596b479d83 Skip default tcache testing if !opt_tcache. Jason Evans 2017-05-31 21:34:26 -07:00
  • fa35463d56 Witness assertions: only assert locklessness when non-reentrant. David Goldblatt 2017-05-31 09:43:43 -07:00
  • 508f54b02b Use real pthread_create for creating background threads. Qi Wang 2017-05-30 20:45:29 -07:00
  • 9a86c9bd30 Clean source directory before building tests in object directories. Jason Evans 2017-05-31 14:15:53 -07:00
  • 8261e581be Header refactoring: Pull size helpers out of jemalloc module. David Goldblatt 2017-05-30 10:45:37 -07:00
  • 041e041e1f Header refactoring: unify and de-catchall mutex_pool. David Goldblatt 2017-05-23 14:56:24 -07:00
  • 98774e64a4 Header refactoring: unify and de-catchall extent_mmap module. David Goldblatt 2017-05-23 14:42:32 -07:00
  • 93284bb53d Header refactoring: unify and de-catchall extent_dss. David Goldblatt 2017-05-23 14:36:09 -07:00
  • 44f9bd147a Header refactoring: unify and de-catchall rtree module. David Goldblatt 2017-05-23 14:26:31 -07:00
  • b4b4a98bc8 Add /run_tests.out/ to .gitignore. David Goldblatt 2017-05-31 10:16:16 -07:00
  • 10d090aae9 Pass the O_CLOEXEC flag to open(2). Jason Evans 2017-05-30 14:36:55 -07:00
  • 66813916b5 Track background thread status separately at fork. Qi Wang 2017-05-30 18:05:27 -07:00
  • 2e4d1a4e30 Output total_wait_ns for bin mutexes. Qi Wang 2017-05-30 15:56:01 -07:00
  • ff8062a511 Add jemalloc prefix to allocator functions pruned by jeprof. Jason Evans 2017-05-30 14:26:02 -07:00
  • 7578b0e929 Explicitly say so when aborting on opt_abort_conf. Qi Wang 2017-05-30 13:17:10 -07:00
  • 685c97fc43 More thoroughly document the *.{nmalloc,ndalloc,nrequests} mallctls. Jason Evans 2017-05-30 13:51:33 -07:00
  • c606a87d2a Add the --disable-thp option to support cross compiling. Jason Evans 2017-05-30 09:54:49 -07:00
  • bf6673a070 Fix npages during arena_decay_epoch_advance(). Qi Wang 2017-05-29 22:47:16 -07:00
  • 4f0963b883 Add test for excessive retained memory. Jason Evans 2017-05-26 09:52:33 -07:00
  • 168793a1c1 Fix extent_grow_next management. Jason Evans 2017-05-26 11:06:01 -07:00
  • a16114866a Fix OOM paths in extent_grow_retained(). Jason Evans 2017-05-25 18:15:41 -07:00
  • d5ef5ae934 Add opt.stats_print_opts. Qi Wang 2017-05-27 15:35:36 -07:00
  • 49505e558b Make test/unit/background_thread not flaky. Qi Wang 2017-05-26 13:51:55 -07:00
  • b86d271cbf Added opt_abort_conf: abort on invalid config options. Qi Wang 2017-05-25 15:30:11 -07:00
  • 57aaa53f2b Fix run_tests to avoid percpu_arena on !Linux. Jason Evans 2017-05-26 11:24:08 -07:00
  • 927239b910 Cleanup smoothstep.sh / .h. Qi Wang 2017-05-25 13:33:34 -07:00
  • 1df18d7c83 Fix stats.mapped during deallocation. Qi Wang 2017-05-24 12:44:53 -07:00
  • 67c93c332a Refactor run_tests to increase parallelism. Jason Evans 2017-05-24 11:33:06 -07:00
  • 18ecbfa89e Header refactoring: unify and de-catchall mutex module David Goldblatt 2017-05-23 12:28:19 -07:00
  • 9f822a1fd7 Header refactoring: unify and de-catchall witness code. David Goldblatt 2017-05-22 19:32:04 -07:00
  • 36195c8f4d Disable percpu_arena by default. Jason Evans 2017-05-23 10:53:36 -07:00
  • 196a53c2ae Do not assume dss never decreases. Jason Evans 2017-05-16 13:25:17 -07:00
  • 067b970130 Add dss:primary testing. Jason Evans 2017-05-22 17:15:57 -07:00
  • 9b1038d19c Do not hold the base mutex while calling extent hooks. Jason Evans 2017-05-22 17:08:21 -07:00
  • eeefdf3ce8 Fix # of unpurged pages in decay algorithm. Qi Wang 2017-05-22 13:09:17 -07:00
  • 0eae838b0d Check for background thread inactivity on extents_dalloc. Qi Wang 2017-05-22 15:26:25 -07:00
  • 2c368284d2 Add tests for background threads. Qi Wang 2017-05-15 17:44:13 -07:00
  • 44559e7cf1 Add documentation for background_thread related options. Qi Wang 2017-05-15 13:50:42 -07:00
  • 5f5ed2198e Add profiling for the background thread mutex. Qi Wang 2017-05-12 16:26:59 -07:00
  • 2bee0c6251 Add background thread related stats. Qi Wang 2017-05-12 12:30:33 -07:00
  • b693c7868e Implementing opt.background_thread. Qi Wang 2017-03-17 12:42:33 -07:00
  • 3f685e8824 Protect the rtree/extent interactions with a mutex pool. David Goldblatt 2017-05-15 14:23:51 -07:00
  • 26c792e61a Allow mutexes to take a lock ordering enum at construction. David Goldblatt 2017-05-15 15:38:15 -07:00
  • 6e62c62862 Refactor *decay_time into *decay_ms. Jason Evans 2017-05-17 10:47:00 -07:00
  • baf3e294e0 Add stats: arena uptime. Qi Wang 2017-05-16 13:56:00 -07:00