mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Make the shared memory segment size configurable
This is useful only on systems where memory overcommit is not available or disabled.
This commit is contained in:
		
							parent
							
								
									a84b72bf96
								
							
						
					
					
						commit
						79ad4e63f6
					
				
					 23 changed files with 99 additions and 37 deletions
				
			
		| 
						 | 
				
			
			@ -174,10 +174,10 @@ pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *
 | 
			
		|||
    pa_client_conf_load(c->conf, NULL);
 | 
			
		||||
    pa_client_conf_env(c->conf);
 | 
			
		||||
 | 
			
		||||
    if (!(c->mempool = pa_mempool_new(!c->conf->disable_shm))) {
 | 
			
		||||
    if (!(c->mempool = pa_mempool_new(!c->conf->disable_shm, c->conf->shm_size))) {
 | 
			
		||||
 | 
			
		||||
        if (!c->conf->disable_shm)
 | 
			
		||||
            c->mempool = pa_mempool_new(FALSE);
 | 
			
		||||
            c->mempool = pa_mempool_new(FALSE, c->conf->shm_size);
 | 
			
		||||
 | 
			
		||||
        if (!c->mempool) {
 | 
			
		||||
            context_free(c);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue