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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Anton Vinogradov (Jira)
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)