src/share/vm/code/codeCache.cpp

changeset 1798
ed4f78aa9282
parent 1637
5f24d0319e54
child 1893
bfe29ec02863
     1.1 --- a/src/share/vm/code/codeCache.cpp	Fri Apr 02 15:55:04 2010 -0700
     1.2 +++ b/src/share/vm/code/codeCache.cpp	Tue Apr 06 13:39:52 2010 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * Copyright 1997-2010 Sun Microsystems, Inc.  All Rights Reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -284,9 +284,11 @@
    1.11        cur->print_on(tty, is_live ? "scavenge root" : "dead scavenge root"); tty->cr();
    1.12      }
    1.13  #endif //PRODUCT
    1.14 -    if (is_live)
    1.15 +    if (is_live) {
    1.16        // Perform cur->oops_do(f), maybe just once per nmethod.
    1.17        f->do_code_blob(cur);
    1.18 +      cur->fix_oop_relocations();
    1.19 +    }
    1.20    }
    1.21  
    1.22    // Check for stray marks.

mercurial