You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by "Igor Babalich (Created) (JIRA)" <ji...@apache.org> on 2011/11/04 20:51:51 UTC
[jira] [Created] (DIRECTMEMORY-32) Fix condition for a free space
in OffHeapMemoryBuffer.firstMatch()
Fix condition for a free space in OffHeapMemoryBuffer.firstMatch()
--------------------------------------------------------------------
Key: DIRECTMEMORY-32
URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-32
Project: Apache DirectMemory
Issue Type: Bug
Reporter: Igor Babalich
Priority: Trivial
If the pointer is placed not in the beginning of the buffer, a free space have to be calculated as a subtraction.
The fix could be like
if (ptr.free && (ptr.end-ptr.start+1) >= capacity) {
instead of
if (ptr.free && ptr.end >= capacity) {
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (DIRECTMEMORY-32) Fix condition for a free space in
OffHeapMemoryBuffer.firstMatch()
Posted by "Christoph Engelbert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRECTMEMORY-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Engelbert closed DIRECTMEMORY-32.
-------------------------------------------
Resolution: Invalid
Seems like the internal codebase has changed and this issue doesn't exists anymore.
> Fix condition for a free space in OffHeapMemoryBuffer.firstMatch()
> --------------------------------------------------------------------
>
> Key: DIRECTMEMORY-32
> URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-32
> Project: Apache DirectMemory
> Issue Type: Bug
> Reporter: Igor Babalich
> Priority: Trivial
>
> If the pointer is placed not in the beginning of the buffer, a free space have to be calculated as a subtraction.
> The fix could be like
>
> if (ptr.free && (ptr.end-ptr.start+1) >= capacity) {
> instead of
> if (ptr.free && ptr.end >= capacity) {
--
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