comparison src/hotspot/share/code/compiledMethod.cpp @ 53628:9cb53c505acd

8214056: Allow the GC to attach context information to CompiledMethod Reviewed-by: shade, kvn, adinn
author eosterlund
date Thu, 22 Nov 2018 09:55:44 +0100
parents 8b26bd8b1832
children 7e268f863ff0
comparison
equal deleted inserted replaced
20:cb490beb6a70 21:226abd764964
42 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, const CodeBlobLayout& layout, 42 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, const CodeBlobLayout& layout,
43 int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, 43 int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps,
44 bool caller_must_gc_arguments) 44 bool caller_must_gc_arguments)
45 : CodeBlob(name, type, layout, frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments), 45 : CodeBlob(name, type, layout, frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments),
46 _mark_for_deoptimization_status(not_marked), 46 _mark_for_deoptimization_status(not_marked),
47 _method(method) 47 _method(method),
48 _gc_data(NULL)
48 { 49 {
49 init_defaults(); 50 init_defaults();
50 } 51 }
51 52
52 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, int size, 53 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, int size,
53 int header_size, CodeBuffer* cb, int frame_complete_offset, int frame_size, 54 int header_size, CodeBuffer* cb, int frame_complete_offset, int frame_size,
54 OopMapSet* oop_maps, bool caller_must_gc_arguments) 55 OopMapSet* oop_maps, bool caller_must_gc_arguments)
55 : CodeBlob(name, type, CodeBlobLayout((address) this, size, header_size, cb), cb, 56 : CodeBlob(name, type, CodeBlobLayout((address) this, size, header_size, cb), cb,
56 frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments), 57 frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments),
57 _mark_for_deoptimization_status(not_marked), 58 _mark_for_deoptimization_status(not_marked),
58 _method(method) 59 _method(method),
60 _gc_data(NULL)
59 { 61 {
60 init_defaults(); 62 init_defaults();
61 } 63 }
62 64
63 void CompiledMethod::init_defaults() { 65 void CompiledMethod::init_defaults() {