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
268b533a
Commit
268b533a
authored
9 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Last status of devices
parent
54704e84
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
src/Memleak_check.cpp
+1
-1
1 addition, 1 deletion
src/Memleak_check.cpp
src/Memleak_check.hpp
+5
-5
5 additions, 5 deletions
src/Memleak_check.hpp
src/memory/HeapMemory.cpp
+0
-1
0 additions, 1 deletion
src/memory/HeapMemory.cpp
with
7 additions
and
7 deletions
.gitignore
+
1
−
0
View file @
268b533a
...
...
@@ -6,6 +6,7 @@
*.exe
*.o
*.so
*.a
# Packages #
############
...
...
This diff is collapsed.
Click to expand it.
src/Memleak_check.cpp
+
1
−
1
View file @
268b533a
...
...
@@ -3,7 +3,7 @@
#include
"ptr_info.hpp"
// counter for allocation of new memory
size_
t
new_data
;
long
in
t
new_data
;
// counter to delete memory
size_t
delete_data
;
...
...
This diff is collapsed.
Click to expand it.
src/Memleak_check.hpp
+
5
−
5
View file @
268b533a
...
...
@@ -34,7 +34,7 @@ typedef unsigned char * byte_ptr;
extern
long
int
msg_on_alloc
;
extern
long
int
thr_on_alloc
;
extern
std
::
string
col_stop
;
extern
size_
t
new_data
;
extern
long
in
t
new_data
;
extern
size_t
delete_data
;
extern
std
::
map
<
byte_ptr
,
ptr_info
>
active_ptr
;
...
...
@@ -307,7 +307,7 @@ static bool check_valid(const void * ptr, size_t size_access)
{
if
(
active_ptr
.
size
()
==
0
)
{
std
::
c
out
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
"
\n
"
;
std
::
c
err
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
"
\n
"
;
ACTION_ON_ERROR
(
MEM_ERROR
);
return
false
;
}
...
...
@@ -321,7 +321,7 @@ static bool check_valid(const void * ptr, size_t size_access)
{
if
(
process_to_print
<
0
||
process_to_print
==
process_v_cl
)
{
std
::
c
out
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
" base allocation id="
<<
l_b
->
second
.
id
<<
"
\n
"
;
std
::
c
err
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
" base allocation id="
<<
l_b
->
second
.
id
<<
"
\n
"
;
ACTION_ON_ERROR
(
MEM_ERROR
);
}
return
false
;
...
...
@@ -335,7 +335,7 @@ static bool check_valid(const void * ptr, size_t size_access)
{
if
(
process_to_print
<
0
||
process_to_print
==
process_v_cl
)
{
std
::
c
out
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
" base allocation id="
<<
l_b
->
second
.
id
<<
"
\n
"
;
std
::
c
err
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
" base allocation id="
<<
l_b
->
second
.
id
<<
"
\n
"
;
ACTION_ON_ERROR
(
MEM_ERROR
);
}
return
false
;
...
...
@@ -349,7 +349,7 @@ static bool check_valid(const void * ptr, size_t size_access)
{
if
(
process_to_print
<
0
||
process_to_print
==
process_v_cl
)
{
std
::
c
out
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
" base allocation id="
<<
l_b
->
second
.
id
<<
"
\n
"
;
std
::
c
err
<<
"Error invalid pointer: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
ptr
<<
" base allocation id="
<<
l_b
->
second
.
id
<<
"
\n
"
;
ACTION_ON_ERROR
(
MEM_ERROR
);
}
return
false
;
...
...
This diff is collapsed.
Click to expand it.
src/memory/HeapMemory.cpp
+
0
−
1
View file @
268b533a
...
...
@@ -169,7 +169,6 @@ bool HeapMemory::resize(size_t sz)
byte
*
tdmOrig
;
tdmOrig
=
new
byte
[
sz
+
alignement
];
#ifdef SE_CLASS2
std
::
cout
<<
"DIOCANE
\n
"
;
check_new
(
tdmOrig
,
sz
+
alignement
,
HEAPMEMORY_EVENT
,
0
);
#endif
tdm
=
tdmOrig
;
...
...
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