Weird difference on macosx
    Erik Joelsson 
    erik.joelsson at oracle.com
       
    Tue Aug 28 05:45:14 PDT 2012
    
    
  
I've been spending some time trying to sort out differences between the 
old and new build on macosx. One of the weirder cases is a seemingly 
random name difference of a method parameter in a generated source file: 
com/apple/jobjc/appkit/NSObjectCategory
Diff of the Javap output of the compiled classes shows:
9739c9739
<              0      44     1 thePoint   
Lcom/apple/jobjc/foundation/NSPoint;
---
 >              0      44     1 aPoint   
Lcom/apple/jobjc/foundation/NSPoint;
I tracked down the source of this difference to be data generated by 
this command (shortened for example):
/usr/bin/gen_bridge_metadata -F complete --framework AppKit -o 
/tmp/AppKitFull.bridgesupport.tmp
If you run it several times, it will sometimes output:
MergingHash:<Bridgesupportparser::ObjCArgInfo>thePoint[name]: thePoint 
=> aPoint
MergingHash:<Bridgesupportparser::ObjCArgInfo>thePoint[name]: thePoint 
=> aPoint
and sometimes:
MergingHash:<Bridgesupportparser::ObjCArgInfo>aPoint[name]: aPoint => 
thePoint
MergingHash:<Bridgesupportparser::ObjCArgInfo>aPoint[name]: aPoint => 
thePoint
I have no idea why the output isn't stable, but it seems to me this will 
differ randomly for both the old and new build. I will make the compare 
script ignore this difference.
/Erik
    
    
More information about the build-infra-dev
mailing list