You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/10/27 08:10:00 UTC

[jira] [Updated] (IGNITE-1598) .NET: Review IDisposable usage for MemoryStreams and PlatformMemory

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

Pavel Tupitsyn updated IGNITE-1598:
-----------------------------------
    Summary: .NET: Review IDisposable usage for MemoryStreams and PlatformMemory  (was: Platform .Net: Review IDisposable usage for MemoryStreams and PlatformMemory)

> .NET: Review IDisposable usage for MemoryStreams and PlatformMemory
> -------------------------------------------------------------------
>
>                 Key: IGNITE-1598
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1598
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>              Labels: .NET
>
> * IPortableStream is IDisposable, but it does not own resources directly
> * PlatformMemory is not IDisposable, but is does own resources
> * Most usages look like "using (var mem = IgniteManager.Memory.Allocate().GetStream())"
> * Memory.Release can't be called multiple times (will cause bugs for pooled memory and crashes for unpooled memory)
> Need to think of a way to mitigate these issues.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)