fix(3p/nix): ValueMap, VectorVector: Use traceable_allocator
We want to *trace* the 'Value *' arrays, not garbage-collect them!
Otherwise the vectors/maps can end up pointing to nowhere.
Backported from:
10e17eaa58
Change-Id: I30dc94caa80c9d982e7a14bc67ba2d065e8203aa
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1252
Tested-by: BuildkiteCI
Reviewed-by: isomer <isomer@tvl.fyi>
			
			
This commit is contained in:
		
							parent
							
								
									5218c83b9f
								
							
						
					
					
						commit
						014436eb4a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								third_party/nix/src/libexpr/value.hh
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								third_party/nix/src/libexpr/value.hh
									
										
									
									
										vendored
									
									
								
							|  | @ -242,9 +242,9 @@ void mkPath(Value& v, const char* s); | |||
|    not included. */ | ||||
| size_t valueSize(Value& v); | ||||
| 
 | ||||
| typedef std::vector<Value*, gc_allocator<Value*> > ValueVector; | ||||
| typedef std::vector<Value*, traceable_allocator<Value*>> ValueVector; | ||||
| typedef std::map<Symbol, Value*, std::less<Symbol>, | ||||
|                  gc_allocator<std::pair<const Symbol, Value*> > > | ||||
|                  traceable_allocator<std::pair<const Symbol, Value*>>> | ||||
|     ValueMap; | ||||
| 
 | ||||
| }  // namespace nix
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue