< prev index next >
agent/src/share/classes/sun/jvm/hotspot/gc_interface/CollectedHeap.java
Print this page
rev 8065 : 8076534: CollectedHeapName in SA agent incorrect
Reviewed-by:
*** 1,7 ****
/*
! * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 30,40 ****
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.memory.*;
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.types.*;
! public class CollectedHeap extends VMObject {
private static long reservedFieldOffset;
static {
VM.registerVMInitializedObserver(new Observer() {
public void update(Observable o, Object data) {
--- 30,40 ----
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.memory.*;
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.types.*;
! public abstract class CollectedHeap extends VMObject {
private static long reservedFieldOffset;
static {
VM.registerVMInitializedObserver(new Observer() {
public void update(Observable o, Object data) {
*** 71,83 ****
public boolean isInReserved(Address a) {
return reservedRegion().contains(a);
}
! public CollectedHeapName kind() {
! return CollectedHeapName.ABSTRACT;
! }
public void print() { printOn(System.out); }
public void printOn(PrintStream tty) {
MemRegion mr = reservedRegion();
tty.println("unknown subtype of CollectedHeap @ " + getAddress() + " (" +
--- 71,81 ----
public boolean isInReserved(Address a) {
return reservedRegion().contains(a);
}
! public abstract CollectedHeapName kind();
public void print() { printOn(System.out); }
public void printOn(PrintStream tty) {
MemRegion mr = reservedRegion();
tty.println("unknown subtype of CollectedHeap @ " + getAddress() + " (" +
< prev index next >