Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/memTracker.cpp @ 7464:ecd24264898b
8005048: NMT: #loaded classes needs to just show the # defined classes
Summary: Count number of instance classes so that it matches class metadata size
Reviewed-by: coleenp, acorn
author | zgu |
---|---|
date | Tue, 08 Jan 2013 14:04:25 -0500 |
parents | bbc14465e7db |
children | 4102b59539ce |
comparison
equal
deleted
inserted
replaced
7396:4a2ed49abd51 | 7464:ecd24264898b |
---|---|
21 * questions. | 21 * questions. |
22 * | 22 * |
23 */ | 23 */ |
24 #include "precompiled.hpp" | 24 #include "precompiled.hpp" |
25 | 25 |
26 #include "oops/instanceKlass.hpp" | |
26 #include "runtime/atomic.hpp" | 27 #include "runtime/atomic.hpp" |
27 #include "runtime/interfaceSupport.hpp" | 28 #include "runtime/interfaceSupport.hpp" |
28 #include "runtime/mutexLocker.hpp" | 29 #include "runtime/mutexLocker.hpp" |
29 #include "runtime/safepoint.hpp" | 30 #include "runtime/safepoint.hpp" |
30 #include "runtime/threadCritical.hpp" | 31 #include "runtime/threadCritical.hpp" |
483 pending_recorders = _global_recorder; | 484 pending_recorders = _global_recorder; |
484 _global_recorder = NULL; | 485 _global_recorder = NULL; |
485 } | 486 } |
486 // check _worker_thread with lock to avoid racing condition | 487 // check _worker_thread with lock to avoid racing condition |
487 if (_worker_thread != NULL) { | 488 if (_worker_thread != NULL) { |
488 _worker_thread->at_sync_point(pending_recorders); | 489 _worker_thread->at_sync_point(pending_recorders, InstanceKlass::number_of_instance_classes()); |
489 } | 490 } |
490 | 491 |
491 assert(SequenceGenerator::peek() == 1, "Should not have memory activities during sync-point"); | 492 assert(SequenceGenerator::peek() == 1, "Should not have memory activities during sync-point"); |
492 } | 493 } |
493 } | 494 } |