src/cpu/sparc/vm/jniFastGetField_sparc.cpp

changeset 2103
3e8fbc61cee8
parent 1907
c18cbe5936b8
child 2314
f95d63e2154a
     1.1 --- a/src/cpu/sparc/vm/jniFastGetField_sparc.cpp	Mon Aug 23 09:09:36 2010 -0700
     1.2 +++ b/src/cpu/sparc/vm/jniFastGetField_sparc.cpp	Wed Aug 25 05:27:54 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2004, 2010, Oracle and/or its affiliates. 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 @@ -50,10 +50,10 @@
    1.11      default:        ShouldNotReachHere();
    1.12    }
    1.13    ResourceMark rm;
    1.14 -  BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE*wordSize);
    1.15 -  address fast_entry = b->instructions_begin();
    1.16 -  CodeBuffer cbuf(fast_entry, b->instructions_size());
    1.17 +  BufferBlob* blob = BufferBlob::create(name, BUFFER_SIZE*wordSize);
    1.18 +  CodeBuffer cbuf(blob);
    1.19    MacroAssembler* masm = new MacroAssembler(&cbuf);
    1.20 +  address fast_entry = __ pc();
    1.21  
    1.22    Label label1, label2;
    1.23  
    1.24 @@ -129,10 +129,10 @@
    1.25  address JNI_FastGetField::generate_fast_get_long_field() {
    1.26    const char *name = "jni_fast_GetLongField";
    1.27    ResourceMark rm;
    1.28 -  BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE*wordSize);
    1.29 -  address fast_entry = b->instructions_begin();
    1.30 -  CodeBuffer cbuf(fast_entry, b->instructions_size());
    1.31 +  BufferBlob* blob = BufferBlob::create(name, BUFFER_SIZE*wordSize);
    1.32 +  CodeBuffer cbuf(blob);
    1.33    MacroAssembler* masm = new MacroAssembler(&cbuf);
    1.34 +  address fast_entry = __ pc();
    1.35  
    1.36    Label label1, label2;
    1.37  
    1.38 @@ -201,10 +201,10 @@
    1.39      default:       ShouldNotReachHere();
    1.40    }
    1.41    ResourceMark rm;
    1.42 -  BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE*wordSize);
    1.43 -  address fast_entry = b->instructions_begin();
    1.44 -  CodeBuffer cbuf(fast_entry, b->instructions_size());
    1.45 +  BufferBlob* blob = BufferBlob::create(name, BUFFER_SIZE*wordSize);
    1.46 +  CodeBuffer cbuf(blob);
    1.47    MacroAssembler* masm = new MacroAssembler(&cbuf);
    1.48 +  address fast_entry = __ pc();
    1.49  
    1.50    Label label1, label2;
    1.51  

mercurial