Printf changes
Greg Lewis
glewis at eyesbeyond.com
Fri Jan 28 14:29:18 PST 2011
G'day Alexnader,
On Fri, Jan 28, 2011 at 12:51:04PM -0500, Alexander Strange wrote:
> On Jan 28, 2011, at 12:41 PM, Alexander Strange wrote:
> > On Jan 24, 2011, at 5:40 PM, Alexander Strange wrote:
> >> On Jan 24, 2011, at 3:18 AM, Greg Lewis wrote:
> >>> G'day all,
> >>>
> >>> I'd like to commit the included changes to how things are printed within
> >>> HotSpot. The current version seems to cause problems on MacOS X (or at
> >>> least I ran into problems compiling a 64 bit version of OpenJDK7).
> >>>
> >>> I've changed the format specifications to use the C99 printf format
> >>> definitions, which should make things more portable. I've tested things
> >>> on FreeBSD/i386 and MacOS X/x86_64. I'd appreciate some wider testing
> >>> (particularly MacOS X/i386).
> >>
> >> macosx-port, of course, contains changes which work on OS X i386 and x86-64.
> >>
> >> The bits you want are src/cpu/x86/vm/jni_x86.h,
> >> src/share/vm/utilities/globalDefinitions.hpp, and the changes after
> >> that here:
> >> http://hg.openjdk.java.net/macosx-port/macosx-port/hotspot/rev/5df62246ab09
> >>
> >> That said, I'll try this one out since avoiding #ifdef __APPLE__
> >> sections is good for maintainability.
I need to look into pulling the MacOS X changes over to try and keep our
repos mostly in sync.
I think that will mostly have to happen manually since we're both child
repos of the main JDK7 repo. I should read the Mercurial book some more
and see if I can pull changes from the MacOS X repo in some fashion to
preserve the merge information.
> > It works on i386. (which is good, since I see you committed it)
Heh.
> > I seem to remember Windows C++ compilers not shipping inttypes.h,
> > though, so I wonder if this won't cause problems in the future. This
> > can always be fixed by shipping an internal copy of course.
I wonder if that is still the case -- I don't have a Windows machine to
check on. I really hope not, since C99 is a 12 year old standard and it
gives us a portable way to do the printf's rather than specific MacOS X
defines in that file.
> By the way, the repository seems to have become unreadable with hg 1.6 -
> I had to upgrade to 1.7.
I'm currently using 1.7.3, so that is possibly the reason. Disappointing
that it's not backward compatible in terms of the repository format (it must
be to some extent though since the repo machine at sun is running 0.9.4).
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the bsd-port-dev
mailing list