hotspot/src/share/vm/interpreter/bytecodeTracer.cpp
changeset 35913 928548a43408
parent 35898 ddc274f0052f
child 46620 750c6edff33b
equal deleted inserted replaced
35607:d73b0b6a24e6 35913:928548a43408
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2016, 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.
   262   if (cache == NULL) {
   262   if (cache == NULL) {
   263     cp_index = i;
   263     cp_index = i;
   264     return true;
   264     return true;
   265   }
   265   }
   266   //climit = cache->length();  // %%% private!
   266   //climit = cache->length();  // %%% private!
   267   size_t size = cache->size() * HeapWordSize;
   267   size_t size = cache->size() * wordSize;
   268   size -= sizeof(ConstantPoolCache);
   268   size -= sizeof(ConstantPoolCache);
   269   size /= sizeof(ConstantPoolCacheEntry);
   269   size /= sizeof(ConstantPoolCacheEntry);
   270   climit = (int) size;
   270   climit = (int) size;
   271 
   271 
   272 #ifdef ASSERT
   272 #ifdef ASSERT