You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Rana Dasgupta (JIRA)" <ji...@apache.org> on 2006/11/12 03:20:37 UTC
[jira] Created: (HARMONY-2154) port_CPUs_number returns incorrect
information on EM64T in wow mode
port_CPUs_number returns incorrect information on EM64T in wow mode
-------------------------------------------------------------------
Key: HARMONY-2154
URL: http://issues.apache.org/jira/browse/HARMONY-2154
Project: Harmony
Issue Type: Bug
Components: DRLVM
Environment: msvc, Windows XP
Reporter: Rana Dasgupta
Attachments: platformapi.patch
port_CPUs_number uses GetSystemInfo which returns incorrect platform information in emulation mode. This fix looks for GetNativeSystemInfo in the kernel and uses it if available; if not uses GetSystemInfo. On native 64 bit mode GetNative SystemInfo delegates to GetSystemInfo. This, and the way WOW redirection works, enables the correct api to be used in all 32 and 64 bit situations.
The patch also adds an api port_Cores_number for core counting on 32 and 64 bit platforms. This is a placeholder implementataion to be extended if we decide to access NUMA or related information through this api.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2154) port_CPUs_number returns incorrect
information on EM64T in wow mode
Posted by "Rana Dasgupta (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2154?page=all ]
Rana Dasgupta updated HARMONY-2154:
-----------------------------------
Attachment: platformapi.patch
Adding the patch
> port_CPUs_number returns incorrect information on EM64T in wow mode
> -------------------------------------------------------------------
>
> Key: HARMONY-2154
> URL: http://issues.apache.org/jira/browse/HARMONY-2154
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: msvc, Windows XP
> Reporter: Rana Dasgupta
> Attachments: platformapi.patch
>
>
> port_CPUs_number uses GetSystemInfo which returns incorrect platform information in emulation mode. This fix looks for GetNativeSystemInfo in the kernel and uses it if available; if not uses GetSystemInfo. On native 64 bit mode GetNative SystemInfo delegates to GetSystemInfo. This, and the way WOW redirection works, enables the correct api to be used in all 32 and 64 bit situations.
> The patch also adds an api port_Cores_number for core counting on 32 and 64 bit platforms. This is a placeholder implementataion to be extended if we decide to access NUMA or related information through this api.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2154) port_CPUs_number returns incorrect
information on EM64T in wow mode
Posted by "Rana Dasgupta (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2154?page=all ]
Rana Dasgupta updated HARMONY-2154:
-----------------------------------
Attachment: platformapi2.patch
Please use the patch platformapi2.patch and not the first one. The first one contains some unnecessary code from my testing as well
> port_CPUs_number returns incorrect information on EM64T in wow mode
> -------------------------------------------------------------------
>
> Key: HARMONY-2154
> URL: http://issues.apache.org/jira/browse/HARMONY-2154
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: msvc, Windows XP
> Reporter: Rana Dasgupta
> Attachments: platformapi.patch, platformapi2.patch
>
>
> port_CPUs_number uses GetSystemInfo which returns incorrect platform information in emulation mode. This fix looks for GetNativeSystemInfo in the kernel and uses it if available; if not uses GetSystemInfo. On native 64 bit mode GetNative SystemInfo delegates to GetSystemInfo. This, and the way WOW redirection works, enables the correct api to be used in all 32 and 64 bit situations.
> The patch also adds an api port_Cores_number for core counting on 32 and 64 bit platforms. This is a placeholder implementataion to be extended if we decide to access NUMA or related information through this api.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-2154) port_CPUs_number returns incorrect
information on EM64T in wow mode
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2154?page=all ]
Alexey Varlamov reassigned HARMONY-2154:
----------------------------------------
Assignee: Alexey Varlamov
> port_CPUs_number returns incorrect information on EM64T in wow mode
> -------------------------------------------------------------------
>
> Key: HARMONY-2154
> URL: http://issues.apache.org/jira/browse/HARMONY-2154
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: msvc, Windows XP
> Reporter: Rana Dasgupta
> Assigned To: Alexey Varlamov
> Attachments: platformapi.patch, platformapi2.patch
>
>
> port_CPUs_number uses GetSystemInfo which returns incorrect platform information in emulation mode. This fix looks for GetNativeSystemInfo in the kernel and uses it if available; if not uses GetSystemInfo. On native 64 bit mode GetNative SystemInfo delegates to GetSystemInfo. This, and the way WOW redirection works, enables the correct api to be used in all 32 and 64 bit situations.
> The patch also adds an api port_Cores_number for core counting on 32 and 64 bit platforms. This is a placeholder implementataion to be extended if we decide to access NUMA or related information through this api.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira