src/share/vm/gc_implementation/shared/copyFailedInfo.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/gc_implementation/shared/copyFailedInfo.hpp
src/share/vm/gc_implementation/shared/copyFailedInfo.hpp
Print this page
*** 20,46 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_PROMOTIONFAILEDINFO_HPP
! #define SHARE_VM_GC_IMPLEMENTATION_SHARED_PROMOTIONFAILEDINFO_HPP
#include "runtime/thread.hpp"
#include "utilities/globalDefinitions.hpp"
! class PromotionFailedInfo VALUE_OBJ_CLASS_SPEC {
size_t _first_size;
size_t _smallest_size;
size_t _total_size;
uint _count;
OSThread* _thread;
public:
! PromotionFailedInfo() : _first_size(0), _smallest_size(0), _total_size(0), _count(0), _thread(NULL) {}
! void register_promotion_failed(size_t size) {
if (_first_size == 0) {
_first_size = size;
_smallest_size = size;
_thread = Thread::current()->osthread();
} else if (size < _smallest_size) {
--- 20,46 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_COPYFAILEDINFO_HPP
! #define SHARE_VM_GC_IMPLEMENTATION_SHARED_COPYFAILEDINFO_HPP
#include "runtime/thread.hpp"
#include "utilities/globalDefinitions.hpp"
! class CopyFailedInfo VALUE_OBJ_CLASS_SPEC {
size_t _first_size;
size_t _smallest_size;
size_t _total_size;
uint _count;
OSThread* _thread;
public:
! CopyFailedInfo() : _first_size(0), _smallest_size(0), _total_size(0), _count(0), _thread(NULL) {}
! void register_copy_failure(size_t size) {
if (_first_size == 0) {
_first_size = size;
_smallest_size = size;
_thread = Thread::current()->osthread();
} else if (size < _smallest_size) {
*** 57,70 ****
_total_size = 0;
_count = 0;
_thread = NULL;
}
! bool promotion_failed() const { return _count != 0; }
size_t first_size() const { return _first_size; }
size_t smallest_size() const { return _smallest_size; }
size_t total_size() const { return _total_size; }
! uint promotion_failed_count() const { return _count; }
OSThread* thread() const { return _thread; }
};
! #endif /* SHARE_VM_GC_IMPLEMENTATION_SHARED_PROMOTIONFAILEDINFO_HPP */
--- 57,72 ----
_total_size = 0;
_count = 0;
_thread = NULL;
}
! bool has_failed() const { return _count != 0; }
size_t first_size() const { return _first_size; }
size_t smallest_size() const { return _smallest_size; }
size_t total_size() const { return _total_size; }
! uint failed_count() const { return _count; }
OSThread* thread() const { return _thread; }
};
! class PromotionFailedInfo : public CopyFailedInfo {};
!
! #endif /* SHARE_VM_GC_IMPLEMENTATION_SHARED_COPYFAILEDINFO_HPP */
src/share/vm/gc_implementation/shared/copyFailedInfo.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File