зеркало из https://github.com/github/ruby.git
* ext/objspace/objspace.c (reachable_object_from_root_i):
reachable objects should not include categories and category_objects because it is noisy information. In fact, objects created after calling ObjectSpace.reachable_objects_from_root should not be included as a returning hash objects. Currently, mswin64 platform has a problem because of this behaviour. Should we trace new objects? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
82eef27f46
Коммит
1448b0abf5
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
Sun Dec 15 13:38:29 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* ext/objspace/objspace.c (reachable_object_from_root_i):
|
||||
reachable objects should not include categories and
|
||||
category_objects because it is noisy information.
|
||||
|
||||
In fact, objects created after calling
|
||||
ObjectSpace.reachable_objects_from_root should not be included
|
||||
as a returning hash objects. Currently, mswin64 platform has a
|
||||
problem because of this behaviour. Should we trace new objects?
|
||||
|
||||
Sun Dec 15 07:09:28 2013 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc: Update to RDoc master 263a9e5. This improves the
|
||||
|
|
|
@ -679,7 +679,9 @@ reachable_object_from_root_i(const char *category, VALUE obj, void *ptr)
|
|||
rb_hash_aset(data->categories, category_str, category_objects);
|
||||
}
|
||||
|
||||
if (rb_objspace_markable_object_p(obj)) {
|
||||
if (rb_objspace_markable_object_p(obj) &&
|
||||
obj != data->categories &&
|
||||
obj != data->last_category_objects) {
|
||||
if (rb_objspace_internal_object_p(obj)) {
|
||||
obj = iow_newobj(obj);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче