]> git.proxmox.com Git - rustc.git/blobdiff - src/jemalloc/include/jemalloc/internal/quarantine.h
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / jemalloc / include / jemalloc / internal / quarantine.h
index 4e9c710ae4ee2c349ffd29f02402042fcd1504fd..ae607399f6d7eef9b43af481bb10c0e05298f3ea 100644 (file)
@@ -29,7 +29,7 @@ struct quarantine_s {
 /******************************************************************************/
 #ifdef JEMALLOC_H_EXTERNS
 
-quarantine_t   *quarantine_init(tsd_t *tsd, size_t lg_maxobjs);
+void   quarantine_alloc_hook_work(tsd_t *tsd);
 void   quarantine(tsd_t *tsd, void *ptr);
 void   quarantine_cleanup(tsd_t *tsd);
 
@@ -50,8 +50,8 @@ quarantine_alloc_hook(void)
        assert(config_fill && opt_quarantine);
 
        tsd = tsd_fetch();
-       if (tsd_quarantine_get(tsd) == NULL && tsd_nominal(tsd))
-               tsd_quarantine_set(tsd, quarantine_init(tsd, LG_MAXOBJS_INIT));
+       if (tsd_quarantine_get(tsd) == NULL)
+               quarantine_alloc_hook_work(tsd);
 }
 #endif