hotspot/src/share/vm/oops/cpCacheOop.cpp
changeset 8297 f05d10c1c4b8
parent 7397 5b173b4ca846
child 8334 9c373a57eb31
equal deleted inserted replaced
8296:b1c2163e4e59 8297:f05d10c1c4b8
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2011, 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.
   366   PSParallelCompact::adjust_pointer((oop*)&_f1);
   366   PSParallelCompact::adjust_pointer((oop*)&_f1);
   367   if (is_vfinal()) {
   367   if (is_vfinal()) {
   368     PSParallelCompact::adjust_pointer((oop*)&_f2);
   368     PSParallelCompact::adjust_pointer((oop*)&_f2);
   369   }
   369   }
   370 }
   370 }
   371 
       
   372 void ConstantPoolCacheEntry::update_pointers(HeapWord* beg_addr,
       
   373                                              HeapWord* end_addr) {
       
   374   assert(in_words(size()) == 4, "check code below - may need adjustment");
       
   375   // field[1] is always oop or NULL
       
   376   PSParallelCompact::adjust_pointer((oop*)&_f1, beg_addr, end_addr);
       
   377   if (is_vfinal()) {
       
   378     PSParallelCompact::adjust_pointer((oop*)&_f2, beg_addr, end_addr);
       
   379   }
       
   380 }
       
   381 #endif // SERIALGC
   371 #endif // SERIALGC
   382 
   372 
   383 // RedefineClasses() API support:
   373 // RedefineClasses() API support:
   384 // If this constantPoolCacheEntry refers to old_method then update it
   374 // If this constantPoolCacheEntry refers to old_method then update it
   385 // to refer to new_method.
   375 // to refer to new_method.