< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/DataLayout.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2012, 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.

@@ -170,11 +170,11 @@
   }
   static int bciOffset() {
     return 2;
   }
   public static int cellOffset(int index) {
-    return (headerSizeInCells() + index) * MethodData.cellSize;
+    return MethodData.cellSize + index * MethodData.cellSize;
   }
   // // Return a value which, when or-ed as a byte into _flags, sets the flag.
   // static int flagNumberToByteConstant(int flagNumber) {
   //   assert(0 <= flagNumber && flagNumber < flagLimit, "oob");
   //   DataLayout temp; temp.setHeader(0);
< prev index next >