Lines Matching refs:code_id

283 void AOTCodeHeap::publish_aot(const methodHandle& mh, AOTMethodData* method_data, int code_id) {
299 _code_to_aot[code_id]._state = invalid;
303 jlong* state_adr = &_method_state[code_id];
306 assert(code_id < _method_count, "sanity");
316 if (_code_to_aot[code_id]._state == invalid) {
319 AOTCompiledMethod *aot = new AOTCompiledMethod(code, mh(), meta, metadata_table, metadata_size, state_adr, this, name, code_id, _aot_id);
320 assert(_code_to_aot[code_id]._aot == NULL, "should be not initialized");
321 _code_to_aot[code_id]._aot = aot; // Should set this first
322 if (Atomic::cmpxchg(in_use, (jint*)&_code_to_aot[code_id]._state, not_set) != not_set) {
323 _code_to_aot[code_id]._aot = NULL; // Clean
368 int code_id = stub_offsets[i]._code_id;
369 assert(code_id < _method_count, "sanity");
370 jlong* state_adr = &_method_state[code_id];
380 guarantee(_code_to_aot[code_id]._state != invalid, "stub %s can't be invalidated", full_name);
381 AOTCompiledMethod* aot = new AOTCompiledMethod(entry, NULL, meta, metadata_table, metadata_size, state_adr, this, full_name, code_id, i);
382 assert(_code_to_aot[code_id]._aot == NULL, "should be not initialized");
383 _code_to_aot[code_id]._aot = aot;
384 if (Atomic::cmpxchg(in_use, (jint*)&_code_to_aot[code_id]._state, not_set) != not_set) {
385 fatal("stab '%s' code state is %d", full_name, _code_to_aot[code_id]._state);
639 int code_id = indexes[i];
640 if (_code_to_aot[code_id]._aot == aot) {
657 int code_id = indexes[i];
659 if (Atomic::cmpxchg(invalid, (jint*)&_code_to_aot[code_id]._state, not_set) != not_set) {
660 if (_code_to_aot[code_id]._state == in_use) {
661 AOTCompiledMethod* aot = _code_to_aot[code_id]._aot;
739 int code_id = method_offsets->_code_id;
740 if (_code_to_aot[code_id]._state == invalid) {
758 publish_aot(mh, method_data, code_id);