Re: What is the xawt sizer wrapper, really?

2012-06-19 Thread Maurizio Cimadamore
On 14/06/12 13:14, David Holmes wrote: On 14/06/2012 10:10 PM, Magnus Ihse Bursie wrote: On 2012-06-14 13:52, David Holmes wrote: As I understand this, sizers is to X11 Java code what the UnixConstants program is to the filesystem code. It has to determine various sizes of native data

Re: What is the xawt sizer wrapper, really?

2012-06-19 Thread David Holmes
On 19/06/2012 7:48 PM, Maurizio Cimadamore wrote: On 14/06/12 13:14, David Holmes wrote: On 14/06/2012 10:10 PM, Magnus Ihse Bursie wrote: On 2012-06-14 13:52, David Holmes wrote: As I understand this, sizers is to X11 Java code what the UnixConstants program is to the filesystem code. It has

Re: Fwd: What is the xawt sizer wrapper, really?

2012-06-19 Thread Artem Ananiev
Hi, guys, unfortunately, not many of the current AWT engineers can provide valuable information on the wrapper generator. Many thanks to Yuri (in CC), he digged up the following bug: 6185483: AMD64: xawt 32-bit build should not require running a 64-bit executable It's hidden on

Re: Fwd: What is the xawt sizer wrapper, really?

2012-06-14 Thread Artem Ananiev
Hi, Magnus, (Please, keep me in CC as I'm not subscribed to this alias) in XAWT, we don't have much native code. Xlib routines are called via sun.awt.X11.XlibWrapper, and Xlib structures are accessed via Unsafe + wrapper classes. For example, there is no XWMHints.java in the workspace: it's

Re: Fwd: What is the xawt sizer wrapper, really?

2012-06-14 Thread Magnus Ihse Bursie
On 2012-06-14 12:49, Artem Ananiev wrote: Generation process include creating a new sizer.c file for each structure described in xlibtypes, compiling it and calling the resulted binary to get offsets for all the structure fields. How is this supposed to work when cross-compiling? And why

Re: What is the xawt sizer wrapper, really?

2012-06-14 Thread David Holmes
Hi Magnus, Yes I've also run afoul of this when cross-compiling - mostly recently when we started doing 32-bit cross-compiles (for arm) on 64-bit x86. As I understand this, sizers is to X11 Java code what the UnixConstants program is to the filesystem code. It has to determine various sizes

Re: What is the xawt sizer wrapper, really?

2012-06-14 Thread Magnus Ihse Bursie
On 2012-06-14 13:52, David Holmes wrote: As I understand this, sizers is to X11 Java code what the UnixConstants program is to the filesystem code. It has to determine various sizes of native data structures used by X11 so that those values can be handled correctly in the Java code (storing

Re: What is the xawt sizer wrapper, really?

2012-06-14 Thread David Holmes
On 14/06/2012 10:10 PM, Magnus Ihse Bursie wrote: On 2012-06-14 13:52, David Holmes wrote: As I understand this, sizers is to X11 Java code what the UnixConstants program is to the filesystem code. It has to determine various sizes of native data structures used by X11 so that those values can