src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Oop.java
changeset 48113 af9e4669ca18
parent 47216 71c04702a3d5
child 50525 767cdb97f103
equal deleted inserted replaced
48112:a3d565e72f51 48113:af9e4669ca18
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   200     }
   200     }
   201   }
   201   }
   202 
   202 
   203   public boolean verify() { return true;}
   203   public boolean verify() { return true;}
   204 
   204 
   205   // Package-private routine to speed up ObjectHeap.newOop
   205   public static Klass getKlassForOopHandle(OopHandle handle) {
   206   static Klass getKlassForOopHandle(OopHandle handle) {
       
   207     if (handle == null) {
   206     if (handle == null) {
   208       return null;
   207       return null;
   209     }
   208     }
   210     if (VM.getVM().isCompressedKlassPointersEnabled()) {
   209     if (VM.getVM().isCompressedKlassPointersEnabled()) {
   211       return (Klass)Metadata.instantiateWrapperFor(handle.getCompKlassAddressAt(compressedKlass.getOffset()));
   210       return (Klass)Metadata.instantiateWrapperFor(handle.getCompKlassAddressAt(compressedKlass.getOffset()));