10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoaderData.inline.hpp"
27 #include "classfile/placeholders.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "oops/oop.inline.hpp"
30 #include "runtime/fieldType.hpp"
31 #include "utilities/hashtable.inline.hpp"
32
33 // Placeholder methods
34
35 PlaceholderEntry* PlaceholderTable::new_entry(int hash, Symbol* name,
36 ClassLoaderData* loader_data,
37 bool havesupername,
38 Symbol* supername) {
39 PlaceholderEntry* entry = (PlaceholderEntry*)Hashtable<Symbol*, mtClass>::new_entry(hash, name);
40 // Hashtable with Symbol* literal must increment and decrement refcount.
41 name->increment_refcount();
42 entry->set_loader_data(loader_data);
43 entry->set_havesupername(havesupername);
44 entry->set_supername(supername);
45 entry->set_superThreadQ(NULL);
46 entry->set_loadInstanceThreadQ(NULL);
47 entry->set_defineThreadQ(NULL);
48 entry->set_definer(NULL);
49 entry->set_instance_klass(NULL);
50 return entry;
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoaderData.inline.hpp"
27 #include "classfile/placeholders.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "oops/oop.inline.hpp"
30 #include "utilities/hashtable.inline.hpp"
31
32 // Placeholder methods
33
34 PlaceholderEntry* PlaceholderTable::new_entry(int hash, Symbol* name,
35 ClassLoaderData* loader_data,
36 bool havesupername,
37 Symbol* supername) {
38 PlaceholderEntry* entry = (PlaceholderEntry*)Hashtable<Symbol*, mtClass>::new_entry(hash, name);
39 // Hashtable with Symbol* literal must increment and decrement refcount.
40 name->increment_refcount();
41 entry->set_loader_data(loader_data);
42 entry->set_havesupername(havesupername);
43 entry->set_supername(supername);
44 entry->set_superThreadQ(NULL);
45 entry->set_loadInstanceThreadQ(NULL);
46 entry->set_defineThreadQ(NULL);
47 entry->set_definer(NULL);
48 entry->set_instance_klass(NULL);
49 return entry;
|