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 2015/10/01 11:32:26 UTC

[jira] [Created] (IGNITE-1598) Platform .Net: Review IDisposable usage for MemoryStreams and PlatformMemory

Pavel  Tupitsyn created IGNITE-1598:
---------------------------------------

             Summary: Platform .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
            Reporter: Pavel  Tupitsyn


* 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.3.4#6332)