@@ -364,19 +364,18 @@ static void FIRCLSBinaryImageChanged(bool added,
364
364
intptr_t vmaddr_slide) {
365
365
// FIRCLSSDKLog("Binary image %s %p\n", added ? "loaded" : "unloaded", mh);
366
366
367
- FIRCLSBinaryImageDetails imageDetails;
368
-
369
- memset (&imageDetails, 0 , sizeof ( FIRCLSBinaryImageDetails)) ;
367
+ // this isn't, so do it on a serial queue
368
+ dispatch_async ( FIRCLSGetBinaryImageQueue (), ^{
369
+ FIRCLSBinaryImageDetails imageDetails ;
370
370
371
- imageDetails.slice = FIRCLSMachOSliceWithHeader ((void *)mh);
372
- imageDetails.vmaddr_slide = vmaddr_slide;
373
- FIRCLSBinaryImageFillInImageDetails (&imageDetails);
371
+ memset (&imageDetails, 0 , sizeof (FIRCLSBinaryImageDetails));
374
372
375
- // this is an atomic operation
376
- FIRCLSBinaryImageStoreNode (added, imageDetails);
373
+ imageDetails.slice = FIRCLSMachOSliceWithHeader ((void *)mh);
374
+ imageDetails.vmaddr_slide = vmaddr_slide;
375
+ FIRCLSBinaryImageFillInImageDetails (&imageDetails);
377
376
378
- // this isn't, so do it on a serial queue
379
- dispatch_async ( FIRCLSGetBinaryImageQueue (), ^{
377
+ // this is an atomic operation
378
+ FIRCLSBinaryImageStoreNode (added, imageDetails);
380
379
FIRCLSBinaryImageRecordSlice (added, imageDetails);
381
380
});
382
381
}
0 commit comments