You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/03/05 12:59:50 UTC

[jira] Resolved: (HARMONY-3287) [drlvm][winx64] Eclipse fails in -Xint with SWTError: No more handles

     [ https://issues.apache.org/jira/browse/HARMONY-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-3287.
----------------------------------------

    Resolution: Fixed

The failure of GdiplusStartup happened to because this function was called from a native method with RSP not aligned to 16 bytes. It is not well documented in MSDN, but it looks like RSP has to be always aligned to 16 bytes. Some functions don't require it, but some do. A patch was made to the interpreter to fix this in assembly code, so if a native method has an odd number of arguments, additional 8 bytes are skilled by RSP to align it to 16 bytes.

Patch applied at 514264.

> [drlvm][winx64] Eclipse fails in -Xint with SWTError: No more handles
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3287
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3287
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: windows/em64t
>            Reporter: Vladimir Beliaev
>         Attachments: test.zip
>
>
> Yesterday I've tried to start Eclipse on drlvm in interpreter mode (-Xint option) on windows/x86_64.
> Eclipse failed starting with org.eclipse.swt.SWTError: No more handles
> Would be nice to get this fixed. The lstack trace fragment is below:
> org.eclipse.swt.SWTError: No more handles
>         at org.eclipse.swt.SWT.error(SWT.java:3433)
>         at org.eclipse.swt.SWT.error(SWT.java:3330)
>         at org.eclipse.swt.SWT.error(SWT.java:3301)
>         at org.eclipse.swt.graphics.GC.initGdip(GC.java:3282)
>        ... skipped ...
> Thanks
> Vladimir Beliaev

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.