@@ -5173,8 +5173,15 @@ static Bool mc_expensive_sanity_check ( void )
5173
5173
/*--- Command line args ---*/
5174
5174
/*------------------------------------------------------------*/
5175
5175
5176
-
5176
+ /* --partial-loads-ok: enable by default on MacOS. The MacOS system
5177
+ graphics libraries are heavily vectorised, and not enabling this by
5178
+ default causes lots of false errors. */
5179
+ #if defined(VGO_darwin )
5180
+ Bool MC_ (clo_partial_loads_ok ) = True ;
5181
+ #else
5177
5182
Bool MC_ (clo_partial_loads_ok ) = False ;
5183
+ #endif
5184
+
5178
5185
Long MC_ (clo_freelist_vol ) = 20 * 1000 * 1000LL ;
5179
5186
Long MC_ (clo_freelist_big_blocks ) = 1 * 1000 * 1000LL ;
5180
5187
LeakCheckMode MC_ (clo_leak_check ) = LC_Summary ;
@@ -5347,7 +5354,12 @@ static Bool mc_process_cmd_line_options(const HChar* arg)
5347
5354
}
5348
5355
5349
5356
static void mc_print_usage (void )
5350
- {
5357
+ {
5358
+ const HChar * plo_default = "no" ;
5359
+ # if defined(VGO_darwin )
5360
+ plo_default = "yes" ;
5361
+ # endif
5362
+
5351
5363
VG_ (printf )(
5352
5364
" --leak-check=no|summary|full search for memory leaks at exit? [summary]\n"
5353
5365
" --leak-resolution=low|med|high differentiation of leak stack traces [high]\n"
@@ -5366,7 +5378,7 @@ static void mc_print_usage(void)
5366
5378
" same as --show-leak-kinds=definite\n"
5367
5379
" --undef-value-errors=no|yes check for undefined value errors [yes]\n"
5368
5380
" --track-origins=no|yes show origins of undefined values? [no]\n"
5369
- " --partial-loads-ok=no|yes too hard to explain here; see manual [no ]\n"
5381
+ " --partial-loads-ok=no|yes too hard to explain here; see manual [%s ]\n"
5370
5382
" --freelist-vol=<number> volume of freed blocks queue [20000000]\n"
5371
5383
" --freelist-big-blocks=<number> releases first blocks with size>= [1000000]\n"
5372
5384
" --workaround-gcc296-bugs=no|yes self explanatory [no]\n"
@@ -5375,6 +5387,7 @@ static void mc_print_usage(void)
5375
5387
" --free-fill=<hexnumber> fill free'd areas with given value\n"
5376
5388
" --keep-stacktraces=alloc|free|alloc-and-free|alloc-then-free|none\n"
5377
5389
" stack trace(s) to keep for malloc'd/free'd areas [alloc-then-free]\n"
5390
+ , plo_default
5378
5391
);
5379
5392
}
5380
5393
0 commit comments