File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ // GITHUB-CI: MMTK_PLAN=NoGC 
2+ 
13use  super :: mock_test_prelude:: * ; 
24
3- use  crate :: util:: alloc:: allocator:: { AllocationOptions ,   OnAllocationFail } ; 
5+ use  crate :: util:: alloc:: allocator:: AllocationOptions ; 
46use  crate :: AllocationSemantics ; 
57
68/// This test will do alloc_with_options in a loop, and evetually fill up the heap. 
@@ -26,7 +28,8 @@ pub fn allocate_overcommit() {
2628                    0 , 
2729                    AllocationSemantics :: Default , 
2830                    AllocationOptions  { 
29-                         on_fail :  OnAllocationFail :: ReturnFailure , 
31+                         allow_overcommit :  true , 
32+                         ..Default :: default ( ) 
3033                    } , 
3134                ) ; 
3235                assert ! ( !last_result. is_zero( ) ) ; 
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ mod mock_test_allocate_align_offset;
2727mod  mock_test_allocate_no_gc_oom_on_acquire; 
2828mod  mock_test_allocate_no_gc_simple; 
2929mod  mock_test_allocate_nonmoving; 
30+ mod  mock_test_allocate_overcommit; 
3031mod  mock_test_allocate_with_disable_collection; 
3132mod  mock_test_allocate_with_initialize_collection; 
3233mod  mock_test_allocate_with_re_enable_collection; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments