8221732: Introduce CollectedHeap::hash_oop()

Reviewed-by: kbarrett, tschatzl, stefank
This commit is contained in:
Per Lidén 2019-04-02 10:04:25 +02:00
parent a7dd794beb
commit a5cec7fe04
7 changed files with 24 additions and 12 deletions

View file

@ -239,6 +239,8 @@ class CollectedHeap : public CHeapObj<mtInternal> {
DEBUG_ONLY(bool is_in_or_null(const void* p) const { return p == NULL || is_in(p); })
virtual uint32_t hash_oop(oop obj) const;
void set_gc_cause(GCCause::Cause v) {
if (UsePerfData) {
_gc_lastcause = _gc_cause;