Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_devices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_devices
Commits
9817279e
Commit
9817279e
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Small bug fixes
parent
add2acfe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/memory/BHeapMemory.hpp
+3
-3
3 additions, 3 deletions
src/memory/BHeapMemory.hpp
src/memory/HeapMemory.hpp
+1
-1
1 addition, 1 deletion
src/memory/HeapMemory.hpp
src/util/print_stack.hpp
+4
-0
4 additions, 0 deletions
src/util/print_stack.hpp
with
8 additions
and
4 deletions
src/memory/BHeapMemory.hpp
+
3
−
3
View file @
9817279e
...
...
@@ -26,10 +26,10 @@ typedef unsigned char byte;
*
* It differs from HeapMemory in resize behavior.
*
* In the case of HeapMemory if you try to shrink the memory nothing happen to the allocated memory.
* In the case of
B
HeapMemory if you try to shrink the memory nothing happen to the allocated memory.
* To destroy the internal memory you must use destroy.
*
* BHeapMemory does not shrink the memory, but it shrink the buffer size. size
will
always return the buffer size
* BHeapMemory does not shrink the memory, but it shrink the buffer size. size
()
always return the buffer size
*
* ### Allocate memory
*
...
...
@@ -66,7 +66,7 @@ public:
:
HeapMemory
(),
buf_sz
(
0
)
{};
virtual
~
BHeapMemory
()
virtual
~
BHeapMemory
()
noexcept
{
};
...
...
This diff is collapsed.
Click to expand it.
src/memory/HeapMemory.hpp
+
1
−
1
View file @
9817279e
...
...
@@ -138,7 +138,7 @@ public:
//! Constructor, we choose a default alignment of 32 for avx
HeapMemory
()
:
alignement
(
MEM_ALIGNMENT
),
sz
(
0
),
dm
(
NULL
),
dmOrig
(
NULL
),
ref_cnt
(
0
)
{};
virtual
~
HeapMemory
()
virtual
~
HeapMemory
()
noexcept
{
if
(
ref_cnt
==
0
)
HeapMemory
::
destroy
();
...
...
This diff is collapsed.
Click to expand it.
src/util/print_stack.hpp
+
4
−
0
View file @
9817279e
...
...
@@ -119,6 +119,10 @@ static inline void print_stack()
std
::
cerr
<<
str
.
str
()
<<
std
::
endl
;
#else
std
::
cerr
<<
"Stack trace deactivated"
<<
std
::
endl
;
#endif
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment