src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GenerationFactory.java
changeset 59053 ba6c248cae19
parent 53814 eff915f3d3f2
equal deleted inserted replaced
59051:f0312c7d5b37 59053:ba6c248cae19
    25 package sun.jvm.hotspot.gc.shared;
    25 package sun.jvm.hotspot.gc.shared;
    26 
    26 
    27 import java.util.*;
    27 import java.util.*;
    28 
    28 
    29 import sun.jvm.hotspot.debugger.*;
    29 import sun.jvm.hotspot.debugger.*;
    30 import sun.jvm.hotspot.gc.cms.*;
       
    31 import sun.jvm.hotspot.gc.serial.*;
    30 import sun.jvm.hotspot.gc.serial.*;
    32 import sun.jvm.hotspot.runtime.*;
    31 import sun.jvm.hotspot.runtime.*;
    33 import sun.jvm.hotspot.types.*;
    32 import sun.jvm.hotspot.types.*;
    34 
    33 
    35 /** Factory containing a VirtualConstructor suitable for instantiating
    34 /** Factory containing a VirtualConstructor suitable for instantiating
    48 
    47 
    49   private static synchronized void initialize(TypeDataBase db) {
    48   private static synchronized void initialize(TypeDataBase db) {
    50     ctor = new VirtualConstructor(db);
    49     ctor = new VirtualConstructor(db);
    51 
    50 
    52     ctor.addMapping("DefNewGeneration", DefNewGeneration.class);
    51     ctor.addMapping("DefNewGeneration", DefNewGeneration.class);
    53     ctor.addMapping("ParNewGeneration", ParNewGeneration.class);
       
    54     ctor.addMapping("TenuredGeneration", TenuredGeneration.class);
    52     ctor.addMapping("TenuredGeneration", TenuredGeneration.class);
    55     ctor.addMapping("ConcurrentMarkSweepGeneration", ConcurrentMarkSweepGeneration.class);
       
    56   }
    53   }
    57 
    54 
    58   public static Generation newObject(Address addr) {
    55   public static Generation newObject(Address addr) {
    59       try {
    56       try {
    60           return (Generation) ctor.instantiateWrapperFor(addr);
    57           return (Generation) ctor.instantiateWrapperFor(addr);