comparison src/share/vm/code/oopRecorder.cpp @ 1579:e9ff18c4ace7

Merge
author jrose
date Wed, 02 Jun 2010 22:45:42 -0700
parents c18cbe5936b8 1a5913bf5e19
children f95d63e2154a
comparison
equal deleted inserted replaced
1562:dfe27f03244a 1579:e9ff18c4ace7
1 /* 1 /*
2 * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2010, 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.
48 _complete = true; 48 _complete = true;
49 if (_handles == NULL) return 0; 49 if (_handles == NULL) return 0;
50 return _handles->length() * sizeof(oop); 50 return _handles->length() * sizeof(oop);
51 } 51 }
52 52
53 void OopRecorder::copy_to(CodeBlob* code) { 53 void OopRecorder::copy_to(nmethod* nm) {
54 assert(_complete, "must be frozen"); 54 assert(_complete, "must be frozen");
55 maybe_initialize(); // get non-null handles, even if we have no oops 55 maybe_initialize(); // get non-null handles, even if we have no oops
56 code->copy_oops(_handles); 56 nm->copy_oops(_handles);
57 } 57 }
58 58
59 void OopRecorder::maybe_initialize() { 59 void OopRecorder::maybe_initialize() {
60 if (_handles == NULL) { 60 if (_handles == NULL) {
61 if (_arena != NULL) { 61 if (_arena != NULL) {