comparison src/share/vm/graal/graalCodeInstaller.hpp @ 17335:508e88b5f1d3

Don't hang onto code install references after install finished
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Thu, 02 Oct 2014 10:59:03 -0700
parents 6fcb6691fe5f
children 8c079b8d0446
comparison
equal deleted inserted replaced
17334:0563b652c052 17335:508e88b5f1d3
27 #include "graal/graalEnv.hpp" 27 #include "graal/graalEnv.hpp"
28 28
29 /* 29 /*
30 * This class handles the conversion from a InstalledCode to a CodeBlob or an nmethod. 30 * This class handles the conversion from a InstalledCode to a CodeBlob or an nmethod.
31 */ 31 */
32 class CodeInstaller { 32 class CodeInstaller : public StackObj {
33 friend class VMStructs; 33 friend class VMStructs;
34 private: 34 private:
35 enum MarkId { 35 enum MarkId {
36 VERIFIED_ENTRY = 1, 36 VERIFIED_ENTRY = 1,
37 UNVERIFIED_ENTRY = 2, 37 UNVERIFIED_ENTRY = 2,
94 objArrayOop comments() { return (objArrayOop) JNIHandles::resolve(_comments_handle); } 94 objArrayOop comments() { return (objArrayOop) JNIHandles::resolve(_comments_handle); }
95 #endif 95 #endif
96 96
97 public: 97 public:
98 98
99 CodeInstaller() {}; 99 CodeInstaller() {}
100 GraalEnv::CodeInstallResult install(Handle& compiled_code, CodeBlob*& cb, Handle installed_code, Handle speculation_log); 100 GraalEnv::CodeInstallResult install(Handle& compiled_code, CodeBlob*& cb, Handle installed_code, Handle speculation_log);
101 101
102 static address runtime_call_target_address(oop runtime_call); 102 static address runtime_call_target_address(oop runtime_call);
103 static VMReg get_hotspot_reg(jint graalRegisterNumber); 103 static VMReg get_hotspot_reg(jint graalRegisterNumber);
104 static bool is_general_purpose_reg(VMReg hotspotRegister); 104 static bool is_general_purpose_reg(VMReg hotspotRegister);