Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
2e56da5a
Unverified
Commit
2e56da5a
authored
Jul 17, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `MRB_TT_DATA` calculation of `memsize_of`; #5032
parent
60279b2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
mrbgems/mruby-objectspace/src/mruby_objectspace.c
mrbgems/mruby-objectspace/src/mruby_objectspace.c
+0
-8
No files found.
mrbgems/mruby-objectspace/src/mruby_objectspace.c
View file @
2e56da5a
...
...
@@ -304,9 +304,6 @@ os_memsize_of_object(mrb_state* mrb, mrb_value obj, mrb_value recurse, mrb_int*
}
case
MRB_TT_DATA
:
(
*
t
)
+=
mrb_objspace_page_slot_size
();
if
(
mrb_respond_to
(
mrb
,
obj
,
mrb_intern_lit
(
mrb
,
"memsize"
)))
{
(
*
t
)
+=
mrb_fixnum
(
mrb_funcall
(
mrb
,
obj
,
"memsize"
,
0
));
}
break
;
#ifndef MRB_WITHOUT_FLOAT
case
MRB_TT_FLOAT
:
...
...
@@ -390,11 +387,6 @@ os_memsize_of_object(mrb_state* mrb, mrb_value obj, mrb_value recurse, mrb_int*
* the final sum. It avoids infinite recursion and over counting objects by
* internally tracking discovered object ids.
*
* MRB_TT_DATA objects aren't calculated beyond their original page slot. However,
* if the object implements a memsize method it will call that method and add the
* return value to the total. This provides an opportunity for C based data structures
* to report their memory usage.
*
*/
static
mrb_value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment