hotspot/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp
changeset 46271 979ebd346ecf
parent 41697 94ef14db8a20
child 46381 020219e46c86
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2017, 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.
    42   }
    42   }
    43 }
    43 }
    44 
    44 
    45 void CodeInstaller::pd_patch_OopConstant(int pc_offset, Handle constant, TRAPS) {
    45 void CodeInstaller::pd_patch_OopConstant(int pc_offset, Handle constant, TRAPS) {
    46   address pc = _instructions->start() + pc_offset;
    46   address pc = _instructions->start() + pc_offset;
    47   Handle obj = HotSpotObjectConstantImpl::object(constant);
    47   Handle obj(THREAD, HotSpotObjectConstantImpl::object(constant));
    48   jobject value = JNIHandles::make_local(obj());
    48   jobject value = JNIHandles::make_local(obj());
    49   if (HotSpotObjectConstantImpl::compressed(constant)) {
    49   if (HotSpotObjectConstantImpl::compressed(constant)) {
    50 #ifdef _LP64
    50 #ifdef _LP64
    51     int oop_index = _oop_recorder->find_index(value);
    51     int oop_index = _oop_recorder->find_index(value);
    52     RelocationHolder rspec = oop_Relocation::spec(oop_index);
    52     RelocationHolder rspec = oop_Relocation::spec(oop_index);