You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Scott Carey (JIRA)" <ji...@apache.org> on 2013/05/01 01:22:16 UTC

[jira] [Updated] (AVRO-1313) Java: Add system property for disabling sun.misc.Unsafe

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

Scott Carey updated AVRO-1313:
------------------------------

    Attachment: AVRO-1313-v2.patch

Even better, the check at runtime when loading should check that it will work.

This changes the runtime test to have fields of all types and validates that it works with all of them before loading an implementation.

Both Unsafe and Reflect cases of these code paths are covered in the Unit tests.
                
> Java: Add system property for disabling sun.misc.Unsafe
> -------------------------------------------------------
>
>                 Key: AVRO-1313
>                 URL: https://issues.apache.org/jira/browse/AVRO-1313
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Scott Carey
>            Assignee: Scott Carey
>             Fix For: 1.7.5
>
>         Attachments: AVRO-1313.patch, AVRO-1313-v2.patch
>
>
> We should be able to disable use of sun.misc.Unsafe.
> I propose that if the system property "avro.disable.unsafe" is non-null, we use reflection rather than Unsafe.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira