comparison src/share/vm/runtime/stubCodeGenerator.cpp @ 1644:2a47bd84841f

6965184: possible races in make_not_entrant_or_zombie Reviewed-by: kvn
author never
date Thu, 08 Jul 2010 14:29:44 -0700
parents c18cbe5936b8
children 126ea7725993
comparison
equal deleted inserted replaced
1635:a693e51ac197 1644:2a47bd84841f
1 /* 1 /*
2 * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2010, 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.
130 StubCodeMark::~StubCodeMark() { 130 StubCodeMark::~StubCodeMark() {
131 _cgen->assembler()->flush(); 131 _cgen->assembler()->flush();
132 _cdesc->set_end(_cgen->assembler()->pc()); 132 _cdesc->set_end(_cgen->assembler()->pc());
133 assert(StubCodeDesc::_list == _cdesc, "expected order on list"); 133 assert(StubCodeDesc::_list == _cdesc, "expected order on list");
134 _cgen->stub_epilog(_cdesc); 134 _cgen->stub_epilog(_cdesc);
135 VTune::register_stub(_cdesc->name(), _cdesc->begin(), _cdesc->end());
136 Forte::register_stub(_cdesc->name(), _cdesc->begin(), _cdesc->end()); 135 Forte::register_stub(_cdesc->name(), _cdesc->begin(), _cdesc->end());
137 136
138 if (JvmtiExport::should_post_dynamic_code_generated()) { 137 if (JvmtiExport::should_post_dynamic_code_generated()) {
139 JvmtiExport::post_dynamic_code_generated(_cdesc->name(), _cdesc->begin(), _cdesc->end()); 138 JvmtiExport::post_dynamic_code_generated(_cdesc->name(), _cdesc->begin(), _cdesc->end());
140 } 139 }