[jira] [Updated] (SPARK-12181) Check Cached unaligned-access capability before using Unsafe

2015-12-07 Thread Ted Yu (JIRA)

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

Ted Yu updated SPARK-12181:
---
Component/s: Spark Core

> Check Cached unaligned-access capability before using Unsafe
> 
>
> Key: SPARK-12181
> URL: https://issues.apache.org/jira/browse/SPARK-12181
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Reporter: Ted Yu
>
> For MemoryMode.OFF_HEAP, Unsafe.getInt etc. are used with no restriction.
> However, the Oracle implementation uses these methods only if the class 
> variable unaligned (commented as "Cached unaligned-access capability") is 
> true, which seems to be calculated whether the architecture is i386, x86, 
> amd64, or x86_64.
> I think we should perform similar check for the use of Unsafe.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-12181) Check Cached unaligned-access capability before using Unsafe

2015-12-07 Thread Ted Yu (JIRA)

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

Ted Yu updated SPARK-12181:
---
Attachment: spark-12181.txt

> Check Cached unaligned-access capability before using Unsafe
> 
>
> Key: SPARK-12181
> URL: https://issues.apache.org/jira/browse/SPARK-12181
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Reporter: Ted Yu
> Attachments: spark-12181.txt
>
>
> For MemoryMode.OFF_HEAP, Unsafe.getInt etc. are used with no restriction.
> However, the Oracle implementation uses these methods only if the class 
> variable unaligned (commented as "Cached unaligned-access capability") is 
> true, which seems to be calculated whether the architecture is i386, x86, 
> amd64, or x86_64.
> I think we should perform similar check for the use of Unsafe.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org